OudsAnnotatedCodeText
An annotated string for com.orange.ouds.core.component.OudsCodeText text in OUDS components.
This class supports colored text for syntax highlighting in code texts.
Use buildOudsAnnotatedCodeText to create instances:
val highlightColor = OudsTheme.colorScheme.content.brandPrimary
OudsCodeText(
text = buildOudsAnnotatedCodeText {
withColor(color = info) { append("val") }
append(" state = ")
withColor(color = positive) { append("rememberState") }
append("()")
}
)Content copied to clipboard
Types
Link copied to clipboard
class Builder(capacity: Int = 16) : OudsAnnotatedString.Builder<OudsAnnotatedCodeText> , OudsAnnotatedString.ColorBuilder
Properties
Functions
Link copied to clipboard
Create capitalized OudsAnnotatedString.
Link copied to clipboard
Create decapitalized OudsAnnotatedString.
Link copied to clipboard
Concatenates this annotated string with another annotated string.
Link copied to clipboard
Link copied to clipboard
Create lower case transformed OudsAnnotatedString.
Link copied to clipboard
Create upper case transformed OudsAnnotatedString.