CodeBlock

@Composable
fun CodeBlock(code: String, language: String?, modifier: Modifier = Modifier)(source)

A code block with a language label, copy action and syntax highlighting (computed off the main thread). Long lines scroll horizontally.