codeBlock

fun AttributeEditScope.codeBlock(language: String? = null)

Convenience function to set the code block attribute of the paragraph within this builder. The applied range will automatically snap to paragraph boundaries.

Parameters

language

The programming language identifier for syntax highlighting or labeling, or null if none.