outputAsHtml

fun TerminalRecorder.outputAsHtml(includeBodyTag: Boolean = true, includeCodeTag: Boolean = true, backgroundColor: Color? = SRGB("#0c0c0c")): String

Render the contents of this TerminalRecorder as an HTML document.

Parameters

includeBodyTag

If true, the output will be wrapped in <html><body> tags.

includeCodeTag

If true, the output will be wrapped in <pre><code> tags. If false, only <pre> will be used.

backgroundColor

If given, the output will be wrapped in a terminal frame with this background color.