codeblock

fun codeblock(code: String, language: String = "")(source)

Adds a code block with optional language specification to the content.

code

Parameters

code

The code to add

language

The language for syntax highlighting (optional)