Hello Repl.it community
With this tutorial, you will learn how to:
- Color Text
- Color Certain Parts of Text
- Color Text in Different Languages
First, of all, colors can only be used in code blocks, or text encased in a box, which can be done like this:
``` This is a code block! ```
With this knowledge, we can get straight into getting color for our text. First, we have to pick which language is best for our needs.
Available languages:
- asciidoc
- autohotkey
- bash
- coffeescript
- cpp (C++)
- cs
- css
- diff
- fix
- glsl
- ini
- json
- md
- ml
- prolog
- py
- tex
- xl
- xml
They each will have their different abilities in terms of what colors can be created, and how they are created.
Here is a list of all the languages and what they can do:
- asciidoc
= Blue =
[Orange]
- autohotkey
A_Red
%Yellow%
^Orange::
123
- bash
$Yellow
"Cyan"
#Grey
test echo exit red
false true cyan
if else then green
thisIsBlue(){
#!Bash
- coffeescript
Blue = ->
"Cyan"
class Yellow extends Yellow
"#{Orange}"
- cpp (C++)
#orange <cyan>
"cyan"
int blue()
- cs
# orange text
" cyan text "
' cyan text '
123 [email protected]#
- css
Text is green
#blue (one word)
.blue (one word)
{yellow: 'Yellow one word before colon. Cyan after colon, inside quotes'}
green.blue
[orange]
- diff
- Red
+ Green
--- grey
*** grey
! green
- fix
Everything is yellow
123 [email protected]#
= cyan after equal sign
- glsl
#Orange text
123
- ini
[ blue inside brackets ]
; grey
- json
[ { "yellow": "cyan", } ]
- md
[cyan](orange)
[cyan][orange]
# blue
* bullet point
1. numbered list
/* orange text *
> grey text
< yellow >
< yellow
multiline >
<blue>
<blue yellow>
<blue yellow="cyan">
# blue
blue above dashes
--------
blue above equals signs
=====
123
- ml
Yellow For Capital
"cyan text"
'red'
grey for lowercase
123
- prolog
Orange For Capital
'cyan text'
grey for lowercase
123
- py
@ Orange text
'cyan text'
# grey text
123 [email protected]#
- tex
$ Everything is highlighted
123
#
- xl
All grey
123 [email protected]#
'cyan text'
- xml
<blue first then yellow = onegreenword after equals sign>
Now that you finally picked your languages and know what they do, you can set up your text.
Any language will create color by typing this in:
```<language>
<text with params necessary to create color>```
Edit: Other languages are supported, but I have not listed them.
And voila, you've got yourself colored text!
-KiKUP
Leave an upvote if this helped you!
there are a lot of languages you didn't mention btw
@theangryepicbanana Discord only supports some of them.
@KiKUP no. I use ones like ruby and perl on discord all the time. I think discord supports any language supported by highlight.js
@theangryepicbanana I've not heard about this. The official discord color server doesn't list anything else than I mention. I will keep this tutorial as it is, but I'll add a note about other languages.
@KiKUP got it