buildOudsAnnotatedCodeText
inline fun buildOudsAnnotatedCodeText(builder: OudsAnnotatedCodeText.Builder.() -> Unit): OudsAnnotatedCodeText
Creates an OudsAnnotatedCodeText using a builder DSL.
Example:
buildOudsAnnotatedCodeText {
withColor(color = info) { append("val") }
withStrong {
append(" state")
}
append(" = ")
withColor(color = positive) { append("rememberState") }
append("()")
}Content copied to clipboard
Return
The constructed annotated code text.
Parameters
builder
Lambda with receiver for building the annotated string.