Last active
October 4, 2023 15:12
-
-
Save lucs/ed1cce0c132474504b4a3c146dcca231 to your computer and use it in GitHub Desktop.
Discord-pastable text using ANSI highlighting codes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```ansi | |
Resetting to normal color and style is done by inserting ``⟨esc⟩[0m``. | |
Basic colors, foreground and background (meh): | |
[0;30m 30 Black [0;40m 40 Black [0m | |
[0;31m 31 Red [0;41m 41 Red [0m | |
[0;32m 32 Green [0;42m 42 Green [0m | |
[0;33m 33 Yellow [0;43m 43 Yellow [0m | |
[0;34m 34 Blue [0;44m 44 Blue [0m | |
[0;35m 35 Magenta [0;45m 45 Magenta [0m | |
[0;36m 36 Cyan [0;46m 46 Cyan [0m | |
[0;37m 37 White [0;47m 47 White [0m | |
Discord appears not to support these | |
foreground or background colors: | |
[0;90m 90 Dark grey [0;100m 100 Dark grey [0m | |
[0;91m 91 Light red [0;101m 101 Light red [0m | |
[0;92m 92 Light green [0;102m 102 Light green [0m | |
[0;93m 93 Yellow [0;103m 103 Yellow [0m | |
[0;94m 94 Light blue [0;104m 104 Light blue [0m | |
[0;95m 95 Light purple [0;105m 105 Light purple [0m | |
[0;96m 96 Turquoise [0;106m 106 Turquoise [0m | |
[0;97m 97 White [0;107m 107 White [0m | |
ANSI styles, some work (here, 0, 1, and 4): | |
Default colour 0 [0m moo [0m | |
Bold 1 [1m moo [0m | |
Italic 3 [3m moo [0m | |
Underlined 4 [4m moo [0m | |
Flashing text 5 [5m moo [0m | |
Reverse field 7 [7m moo [0m | |
Crossed out 9 [9m moo [0m | |
An example combining some of the above: | |
[0;35;46;4m Magenta foreground and cyan "background", underlined [0m | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment