CodeBlock

fun RichTextScope.CodeBlock(text: String, wordWrap: Boolean? = null)
fun RichTextScope.CodeBlock(wordWrap: Boolean? = null, children: @Composable RichTextScope.() -> Unit)

A specially-formatted block of text that typically uses a monospace font with a tinted background.

Parameters

wordWrap

Overrides word wrap preference coming from CodeBlockStyle