CodeBlockStyle

data class CodeBlockStyle(val textStyle: TextStyle? = null, val modifier: Modifier? = null, val padding: TextUnit? = null, val wordWrap: Boolean? = null)

Defines how CodeBlocks are rendered.

Parameters

textStyle

The TextStyle to use for the block.

modifier

The Modifier to use for the block.

padding

The amount of space between the edge of the text and the edge of the background.

wordWrap

Whether a code block breaks the lines or scrolls horizontally.

Constructors

Link copied to clipboard
constructor(textStyle: TextStyle? = null, modifier: Modifier? = null, padding: TextUnit? = null, wordWrap: Boolean? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val modifier: Modifier? = null
Link copied to clipboard
val padding: TextUnit? = null
Link copied to clipboard
val textStyle: TextStyle? = null
Link copied to clipboard
val wordWrap: Boolean? = null