Package-level declarations

Types

Link copied to clipboard
class FormattedString(val contents: List<FormattedStringObject>, isBold: Boolean? = null, isItalic: Boolean? = null, isUnderlined: Boolean? = null, isStrikethrough: Boolean? = null, isInverted: Boolean? = null, val color: Formatting.FGColor? = null, val backgroundColor: Formatting.BGColor? = null) : FormattedStringObject

A formatted String that can be used to format Strings with colors and styles

Link copied to clipboard

A FormattedStringObject is an object that can be used in a FormattedString It can wrap a String or another FormattedString Its used to implement the FormattedStringObject.extends function

Functions

Link copied to clipboard

Format a string with the given background color

Link copied to clipboard

Format a string with the given background color

Link copied to clipboard
fun bgBlack(contents: String): String

Make your background color black

Link copied to clipboard
fun bgBlue(contents: String): String

Make your background color blue

Link copied to clipboard
fun bgBrightBlue(contents: String): String

Make your background color bright blue

Link copied to clipboard
fun bgBrightCyan(contents: String): String

Make your background color bright cyan

Link copied to clipboard
fun bgBrightGreen(contents: String): String

Make your background color bright green

Link copied to clipboard
fun bgBrightPurple(contents: String): String

Make your background color bright purple

Link copied to clipboard
fun bgBrightRed(contents: String): String

Make your background color bright red

Link copied to clipboard
fun bgBrightWhite(contents: String): String

Make your background color bright white

Link copied to clipboard
fun bgBrightYellow(contents: String): String

Make your background color bright yellow

Link copied to clipboard

Format a string with the given background color

Link copied to clipboard
fun bgCyan(contents: String): String

Make your background color cyan

Link copied to clipboard
fun bgGreen(contents: String): String

Make your background color green

Link copied to clipboard
fun bgPurple(contents: String): String

Make your background color purple

Link copied to clipboard
fun bgRed(contents: String): String

Make your background color red

Link copied to clipboard
Link copied to clipboard
fun bgWhite(contents: String): String

Make your background color white

Link copied to clipboard
fun bgYellow(contents: String): String

Make your background color yellow

Link copied to clipboard
fun black(contents: String): String

Make your foreground color black

Link copied to clipboard
fun blue(contents: String): String

Make your foreground color blue

Link copied to clipboard
Link copied to clipboard
fun bold(contents: String): String

Make your text bold

Link copied to clipboard

Make the string bold

Link copied to clipboard
fun brightBlue(contents: String): String

Make your foreground color bright blue

Link copied to clipboard
fun brightCyan(contents: String): String

Make your foreground color bright cyan

Link copied to clipboard
fun brightGreen(contents: String): String

Make your foreground color bright green

Link copied to clipboard
fun brightPurple(contents: String): String

Make your foreground color bright purple

Link copied to clipboard
fun brightRed(contents: String): String

Make your foreground color bright red

Link copied to clipboard
fun brightWhite(contents: String): String

Make your foreground color bright white

Link copied to clipboard
fun brightYellow(contents: String): String

Make your foreground color bright yellow

Link copied to clipboard

Format a string with the given color

Link copied to clipboard
fun cyan(contents: String): String

Make your foreground color cyan

Link copied to clipboard
Link copied to clipboard

Format a string with the given color

Link copied to clipboard
fun fgBlack(contents: String): String

Make your foreground color black

Link copied to clipboard
fun fgBlue(contents: String): String

Make your foreground color blue

Link copied to clipboard
fun fgBrightBlack(contents: String): String

Make your foreground color gray

Link copied to clipboard
fun fgBrightBlue(contents: String): String

Make your foreground color bright blue

Link copied to clipboard
fun fgBrightCyan(contents: String): String

Make your foreground color bright cyan

Link copied to clipboard
fun fgBrightGreen(contents: String): String

Make your foreground color bright green

Link copied to clipboard
fun fgBrightPurple(contents: String): String

Make your foreground color bright purple

Link copied to clipboard
fun fgBrightRed(contents: String): String

Make your foreground color bright red

Link copied to clipboard
fun fgBrightWhite(contents: String): String

Make your foreground color bright white

Link copied to clipboard
fun fgBrightYellow(contents: String): String

Make your foreground color bright yellow

Link copied to clipboard

Format a string with the given color

Link copied to clipboard
fun fgCyan(contents: String): String

Make your foreground color cyan

Link copied to clipboard
fun fgGreen(contents: String): String

Make your foreground color green

Link copied to clipboard
fun fgGrey(contents: String): String

Make your foreground color gray

Link copied to clipboard
fun fgPurple(contents: String): String

Make your foreground color purple

Link copied to clipboard
fun fgRed(contents: String): String

Make your foreground color red

Link copied to clipboard
Link copied to clipboard
fun fgWhite(contents: String): String

Make your foreground color white

Link copied to clipboard
fun fgYellow(contents: String): String

Make your foreground color yellow

Link copied to clipboard
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

Format a string with the given format

Link copied to clipboard
fun green(contents: String): String

Make your foreground color green

Link copied to clipboard
fun grey(contents: String): String

Make your foreground color gray

Link copied to clipboard
fun invert(contents: String): String

Invert colors

Link copied to clipboard

Invert the string

Link copied to clipboard
fun italic(contents: String): String

Make your text italic

Link copied to clipboard

Make the string italic

Link copied to clipboard
fun join(vararg strings: String): String
Link copied to clipboard
fun purple(contents: String): String

Make your foreground color purple

Link copied to clipboard
fun red(contents: String): String

Make your foreground color red

Link copied to clipboard
Link copied to clipboard
fun reverse(contents: String): String

Make your text reverse

Link copied to clipboard

Make the string strikethrough

Link copied to clipboard
fun underline(contents: String): String

Make your text underlined

Link copied to clipboard

Make the string underlined

Link copied to clipboard
fun white(contents: String): String

Make your foreground color white

Link copied to clipboard
fun yellow(contents: String): String

Make your foreground color yellow