buildOudsAnnotatedCodeText

Creates an OudsAnnotatedCodeText using a builder DSL.

Example:

buildOudsAnnotatedCodeText {
withColor(color = info) { append("val") }
withStrong {
append(" state")
}
append(" = ")
withColor(color = positive) { append("rememberState") }
append("()")
}

Return

The constructed annotated code text.

Parameters

builder

Lambda with receiver for building the annotated string.