codeSnippet

fun FlowContent.codeSnippet(block: CodeSnippetConfig.() -> Unit)

Emit a reveal.js-compatible <pre><code> code block with optional line-number highlighting and a copy-to-clipboard button (when the CopyCode plugin is enabled). Call from inside a com.kslides.slide.DslSlide content{} block.

Parameters

block

populates the CodeSnippetConfig; set +"..." inside the block to append code.