[h3]Single Line Code Blocks in Discord[/h3]
To create a single line code block in discord, you need to use the 'tick' or 'backtick' character: `. The 'tick' or 'backtick' character should be in the upper left corner of your keyboard right under the escape (ESC) key.
What it will look like, in Discord:
[h3]Multiple Line (Multiline) Code Blocks in Discord[/h3]
Just like the single line code block, multi-line code blocks also use the backtick ("`) character. The only difference is, instead of writing a single backtick (`) you have to write three ("`) before and after your text.
The neat thing here is that you can press enter and space your text across multiple lines, all formatted in a single multi-line code block.
Here's the markdown for the example below:
What it will look like, in Discord:
You'll notice in the image above that we have all of our text in a code block, but this time it's in multiple lines just like we wanted.
[h3]How to Format Colored Text in Discord[/h3]
We will be creating multiline code blocks using three backticks and specifying the syntax highlighting language used by Discord. We can do this by including the highlighting programming language reference right at the beginning of the multiline code block. There are LIMITATIONS to this method, therefore, the examples listed below will be the ONLY color changes known to me at this time. Don't ask for other colors - I simply do not know what they are or if they even exist!
[h3]How to Color Text RED in Discord[/h3]
Diff Syntax Highlighting for Red (EASY)
Include dashes (-) before the line you want red colored text.
[h4]CSS Syntax Highlighting for Orange (Red-Orange)[/h4]
Include brackets [ ] around the text you want highlighted.
[h3]How to Color Text YELLOW in Discord[/h3]
Fix Syntax Highlighting for Yellow (EASY)
In Fix, everything you type is yellow by default! This is a great, easy way to have yellow text.
[h3]How to Color Text GREEN in Discord[/h3]
Diff Syntax Highlighting for Light Green (EASY)
Include a plus sign (+) before the line that you want turned green.
[h4]CSS Syntax Highlighting for Light Green[/h4]
Include quotation marks " " around the text you want colored Light Green.
[h4]JSON Syntax Highlighting for Dark Green (EASY)[/h4]
Just like in Bash, quotation marks around the text you want to color dark green.
[h3]How to Color Text BLUE in Discord[/h3]
INI Syntax Highlighting for Blue
Place brackets [ ] around the text you want highlighted blue.
OPTIONAL: Click the UPDATES tab (top of this article) to use Rebane's Discord Colored Text Generator, instead.
And now the ball is in your court — get out there and format/color some text!
To create a single line code block in discord, you need to use the 'tick' or 'backtick' character: `. The 'tick' or 'backtick' character should be in the upper left corner of your keyboard right under the escape (ESC) key.
Code:
`This is an example of a single line code block`
What it will look like, in Discord:
[h3]Multiple Line (Multiline) Code Blocks in Discord[/h3]
Just like the single line code block, multi-line code blocks also use the backtick ("`) character. The only difference is, instead of writing a single backtick (`) you have to write three ("`) before and after your text.
The neat thing here is that you can press enter and space your text across multiple lines, all formatted in a single multi-line code block.
Here's the markdown for the example below:
Code:
```Experimenting with …
… Multiple lines…
… For my code blocks!```
What it will look like, in Discord:
You'll notice in the image above that we have all of our text in a code block, but this time it's in multiple lines just like we wanted.
[h3]How to Format Colored Text in Discord[/h3]
We will be creating multiline code blocks using three backticks and specifying the syntax highlighting language used by Discord. We can do this by including the highlighting programming language reference right at the beginning of the multiline code block. There are LIMITATIONS to this method, therefore, the examples listed below will be the ONLY color changes known to me at this time. Don't ask for other colors - I simply do not know what they are or if they even exist!
[h3]How to Color Text RED in Discord[/h3]
Diff Syntax Highlighting for Red (EASY)
Include dashes (-) before the line you want red colored text.
Code:
```diff
- Here's some red colored text!
```
[h4]CSS Syntax Highlighting for Orange (Red-Orange)[/h4]
Include brackets [ ] around the text you want highlighted.
Code:
```css
[RED Colored Text in CSS Highlighting]
```
[h3]How to Color Text YELLOW in Discord[/h3]
Fix Syntax Highlighting for Yellow (EASY)
In Fix, everything you type is yellow by default! This is a great, easy way to have yellow text.
Code:
```fix
Everything is yellow in fix --
No matter the line!
```
[h3]How to Color Text GREEN in Discord[/h3]
Diff Syntax Highlighting for Light Green (EASY)
Include a plus sign (+) before the line that you want turned green.
Code:
```diff
+ Here's some green colored text!
```
[h4]CSS Syntax Highlighting for Light Green[/h4]
Include quotation marks " " around the text you want colored Light Green.
Code:
```bash
"Here's some nice, dark green text"
```
[h4]JSON Syntax Highlighting for Dark Green (EASY)[/h4]
Just like in Bash, quotation marks around the text you want to color dark green.
Code:
```json
"Green colored text in JSON"
```
[h3]How to Color Text BLUE in Discord[/h3]
INI Syntax Highlighting for Blue
Place brackets [ ] around the text you want highlighted blue.
Code:
```ini
[Here's some blue highlighted text]
```
OPTIONAL: Click the UPDATES tab (top of this article) to use Rebane's Discord Colored Text Generator, instead.
And now the ball is in your court — get out there and format/color some text!