VoxelEngine/doc/en/text-styles.md
GHOST11111100 6ca8dc18cf fix hex code length and use a exists hex to int method;
added docs for color codes
2025-01-15 20:09:30 +03:00

1.5 KiB

Text styles

A proprietary Markdown dialect is used to mark up text styles. Formatting works on UI elements: label and textbox, if markup="md" is explicitly specified.

Styles

Style Example Output
Bold **Bold font** Bold font
Italic *Text in italics* Text in italics
Underline __Underlined text__ Underlined text
Strikethrough ~~Strikethrough text~~ Strikethrough text

Styles can be combined. Example:

***__Message__*** using *~~combed~~ combined* styles__~~.~~__

Output:

Message using combed combined styles.

Colors

Text color can be set using a color code: [#RRGGBB]

Component Purpose
R Represents the intensity of red
G Represents the intensity of green
B Represents the intensity of blue

Example:

[#ff0000] Red Text [#00ff00] Green Text [#0000ff] Blue Text