withStrong
inline fun <R : Any> OudsAnnotatedString.StrongBuilder.withStrong(block: OudsAnnotatedString.StrongBuilder.() -> R): R
DSL helper for applying strong (bold/emphasized) formatting to a block of text.
This is the recommended way to add strong formatting as it automatically manages the annotation stack.
Example:
buildOudsAnnotatedHelperText {
append("Password must be ")
withStrong {
append("at least 8 characters")
}
append(" long")
}Content copied to clipboard
Return
The result of the block.
Parameters
block
The lambda that appends the text to be formatted as strong.