256 Kilobytes

The Complete Guide to Discord Text Formatting, Syntax Highlighting, and Tricks for Adding Colors

Articles in Other Websites | By August R. Garcia

Published 2 months agoWed, 06 Mar 2019 11:24:57 -0800 | Last update 2 months agoWed, 06 Mar 2019 11:32:03 -0800

Text formatting in Discord is sexy! Let me spoon-feed you my man.

590 views, 1 RAM, and 0 comments

If you go on Discord, your messages will probably look generic relative to everyon else, who is probably more skilled than you.

Discord Uses Markdown

If you have used Markdown in the past, then Discord’s text formatting should be very straightforward. Various other websites, including Reddit and Github, use Markdown formatting. While there is no official standard for everything that can be done in Markdown, the concepts are very similar between platforms.

Basic Formatting: Bold, Italics, Underline, and Strikethrough

As they say, text formatting in Discord is sexy! Let me spoon-feed you my man:

  • Italics                  *italics* or _italics_
  • Bold                     **bold**
  • Bold Italics             ***bold italics***
  • Underline                __underline__
  • Underline italics        __*underline italics*__
  • Underline bold           __**underline bold**__
  • Underline bold italics   __***underline bold italics***__
  • Strikethrough            ~~Strikethrough~~
  • Spoiler Text             || Spoiler Text ||

Source: https://support.discordapp.com/hc/en-us/articles/210298617-Markdown-Text-101

This syntax is fairly standard for sites that use Markdown.

Escape Characters

If you want to write text that isn’t rendered by Discord, then you can use the backslash (\) as an escape character. This is fairly self explanatory. While *this* would normally be italic, \*this\* will render as the literal text “this” with no text styling.

Code Blocks

Discord supports both mutl-line and single-line code blocks using the backtick character:

`This is a single line code block`
```This is a 
multi-line code block```

These allow for text to be preformatted and displayed using monospace characters.

Discord Uses Highlight.js

On top of Markdown, Discord also provides syntax highlighting via a JavaScript library called highlight.js. Specifically, Discord uses the solarized Dark theme. If you want in-depth information about how exactly the syntax highlighting works, you can look into Highlight.js, since it is the exact library used by Discord.

Basic Syntax Highlighting

To use coloring, first consider what syntax highlighting even is. In programming languages, there are various keywords and symbols that mean particular things. These are generally highlighted in different colors. The code blocks in Discord are technically meant for coloring code, but they can also be used to make arbitrary colors.

When using the triple backticks to create multi-line code blocks, you can also specify what (programming/computer) language to use for the syntax highlighting using the following syntax:

Here is some text.
Here is more text.```

Coloring in Discord

The colors used in Discord are done using what are essentially hacks/exploits of the basic Highlight.js library.

Specifying the language as diff, fix, css, bash, ini, json, apache, and other languages allows for some coloration tricks. For example, orange and yellow-green text are both easily able to be rendered. Cyan/light-blue can also be done relatively easily.


Lorem Ipsum is simply dummy text
of the printing and typesetting industry.```


Lorem Ipsum is simply dummy text
of the printing and typesetting industry.```


"Lorem Ipsum is simply dummy text
of the printing and typesetting industry."```

Other Colors

Other colors are also possible if you’re willing to do things like wrap your text in brackets or only use underscores instead of spaces. If you mess around with Discord, you can probably turn up some other options, like the ones shown in this wiki or in this blog post.

Markdown Within Code Blocks

You can use the abbreviation “md” to render a code block that uses markdown. This will both keep in the literal characters while also applying the styles. For example *this* will be bold and the asterisks will still be shown.

# Lorum Ipsum
Lorem Ipsum is *simply dummy text*
of the printing **and** typesetting industry.```
Users Who Have Downloaded More RAM:
Hash Brown (3 weeks ago)
🐏 ⨉ 1
Posted by August R. Garcia 2 months ago

Edit History

• [2019-03-06 11:24 PST] August R. Garcia (2 months ago)
• [2019-03-06 11:24 PST] August R. Garcia (2 months ago)
• [2019-03-06 11:24 PST] August R. Garcia (2 months ago)
• [2019-03-06 11:24 PST] August R. Garcia (2 months ago)
• [2019-03-06 11:24 PST] August R. Garcia (2 months ago)
🕓 Posted at 06 March, 2019 11:24 AM PST

Profile Photo - August R. Garcia August R. Garcia LARPing as a Sysadmi... Portland, OR
🗎 135 🗨 706 🐏 164
Site Owner

Grahew Mattham

August Garcia is some guy who used to sell Viagra on the Internet. He made this website to LARP as a sysadmin while posting about garbage like user-agent spoofing, spintax, the only good keyboard, virtual assitants from Pakistan, links with the rel="nofollow" attributeproxies, regular expressions, HTML and CSSsin, the developer console, and probably some other trash.

Account created 5 months ago.
135 posts, 706 comments, and 164 RAMs.

Last active 1 day ago:
Posted thread Dear Websites -- Update Your "Powered by vBulletin® Version 3.7.3" Websites; The current version is 5.5.2

Post a New Comment

To leave a comment, login to your account or create an account.

Do you like having a good time?

Read Quality Articles

Read some quality articles. If you can manage to not get banned for like five minutes, you can even post your own articles.

View Articles →

Argue with People on the Internet

Use your account to explain why people are wrong on the Internet forum.

View Forum →

Vandalize the Wiki

Or don't. I'm not your dad.

View Wiki →

Ask and/or Answer Questions

If someone asks a terrible question, post a LMGTFY link.

View Answers →

Make Some Money

Hire freelancers and/or advertise your goods and/or services. Hire people directly. We're not a middleman or your dad. Manage your own business transactions.

Register an Account
You can also login to an existing account or recover your password. All use of this site is subject to terms outlined in the terms of service and privacy policy.