Code

@Composable
fun Code(code: String, modifier: Modifier = Modifier, color: Color = Color.Unspecified)

A composable that receives some source code as String and renders it in the UI.

Parameters

code

The source code content to render in the UI.

modifier

The modifier to be applied to the Markdown.