discord's markup is evolving over time.
first markup version contained these styles:
where all can be combined (you can use for example __~~**bold, crossed out and underlined**~~__ )
later they added new elements:
and also few other chat features:
all builtin /commands :
! WARNING - UNSTABLE FEATURES !
okay, and let's get back to that code block thingy, ansi codes
so if you make a code block with "ansi" instead of coding language you are able to FULLY FORMAT your message to you needs.
it includes:
- normal markup (bold, italic, underline, etc…)
- and additionally full control over displayed colors (both background and foreground).
currently (as far i manually tested that feature) it supports:
- basic 8 (or 16 if counting background separately) terminal colors - all of them altered. list of all colors currently supported, with hex codes:
- 30 (fg, 0) - #4F505A (officially - black)
- 31 (fg, 1) - #DC322F (officially - red)
- 32 - #859901 (officially - green)
- 33 - #B58900 (officially - yellow)
- 34 - #268BD2 (officially - blue)
- 35 - #D33682 (officially - magenta)
- 36 - #2AA198 (officially - cyan)
- 37 - #E3E3E6 (officially - white)
- 40 (bg, 0) - #002B36 (officially - black)
- 41 (bg, 1) - #CB4B16 (officially - red)
- 42 - #586E75 (officially - green)
- 43 - #657B83 (officially - yellow)
- 44 - #839496 (officially - blue)
- 45 - #6C71C4 (officially - magenta)
- 46 - #93A1A1 (officially - cyan)
- 47 - #FDF6E3 (officially - white)
- and few text types (currently bold and underline) :
- 1 - bold
- 4 - underline
you can color text in format:
[;;m [0m
and an example (for clarifying):
[1;31;43m bold red text on yellow background [0m
ofc not all parameters need to be :)