format

fun String.format(isBold: Boolean? = null, isItalic: Boolean? = null, isUnderlined: Boolean? = null, isStrikethrough: Boolean? = null, isInverted: Boolean? = null, color: Formatting.FGColor? = null, backgroundColor: Formatting.BGColor? = null): FormattedString(source)

Format a string with the given format

Return

the resulting FormattedString

Since

0.1.1

Parameters

isBold

whether the string should be bold

isItalic

whether the string should be italic

isUnderlined

whether the string should be underlined

isStrikethrough

whether the string should be strikethrough

isInverted

whether the string should be inverted

color

the Formatting.FGColor to format the string with

backgroundColor

the Formatting.BGColor to format the string with