How to use markdown and write in color on Discord?

Author :

React :

36 Comments

On Discord, writing in color involves the code blocks and the markdown. Each color corresponds to a specific language, and the result is displayed in the desktop or web app.

First, check out the Discord and Alucare.fr:

Alucare.fr on Discord

The Basics of Markdown on Discord

the markdown is a system of text formatting Simple. You just add some special characters on either side of your text to change its formatting, without using a visual editor.

Here are the available styles and their uses.

Make text bold

Use ** on either side of the text.

Example : **Bold**, Not fat

How to make text bold in Discord using two asterisks
Make text bold in Discord. ©Antonin for Alucare.fr

Make text italic

Use * Where _ on either side of the text.

Example : *Italic*, _Italic_, Normal

How to make text italic on Discord using asterisks
Make the text italic on Discord. ©Antonin for Alucare.fr

Highlight text

Use __ (two underscores) on either side of the text.

Example : __Underlined__, Not underlined

Highlight text in Discord using two underscores
Highlight text on Discord. ©Antonin for Alucare.fr

Strike through text

Use ~~ (two tilde characters) on either side of the text.

Example : ~~Strikethrough~~, Not strikethrough

Strike through text in Discord using two tildes
Strike through text on Discord. ©Antonin for Alucare.fr

Combining bold, italics, underline, and strikethrough

You can mixing styles : bold italics, italic and underlined, bold and underlined, or even stack them all together. To get bold, italic, underlined, strikethrough, and spoiler On a single line, the code is:

  • ||___***~~ton texte~~***___||

That's the combination italic, bold, underlined the most comprehensive available on Discord.

Write a title in large font

Add # in start of line, followed by a space, then type your message. Discord displays the text as a title in large print. Use ## for a subtitle slightly smaller.

Write a title in large font on Discord using a hash symbol
Write in large letters on Discord. ©Antonin for Alucare.fr

Insert a clickable link

To insert a hyperlink To create a clickable link in a message, use this syntax:

[link text](https://url.com)

The text appears in blue and links to the specified address via hooks followed by the URL in parentheses. This is one of the functions of formatting the most useful ones from the markdown on Discord.

How to Cite a Source

To display a quote block, start your line with > followed by a space.

Example : > Here's a quote

The text appears with a vertical line on the left side, like a quote block Standard. This feature is useful for mentioning another user in a conversation.

Hide text or an image (spoiler)

You can hide text or an image behind a spoiler. Here's how to do it.

Hide text

To hide a message, put || on either side text.

Example : ||I am hidden!|| Not me...

Hide text as a spoiler on Discord using two vertical bars
Method for hiding text on Discord. ©Antonin for Alucare.fr

The text appears hidden in the discussion, as a spoiler.

Example of text hidden in a spoiler on Discord
Example of hidden text on Discord. ©Antonin for Alucare.fr

All you have to do is to click on the hidden section to view the content.

Displaying a spoiler text after clicking on Discord
Displaying hidden text on Discord. ©Antonin for Alucare.fr

Hide an image

While importing the image, click the option define as Spoiler.

Mark an image as a spoiler in a post on Discord
Hiding an image in a message on Discord. ©Antonin for Alucare.fr

The image is hidden in the message and appears when you click on it.

Image marked as a spoiler on Discord
Hidden image on Discord. ©Antonin for Alucare.fr

Code blocks on Discord

The code blocks are used to display text in a monospace box. There are two types.

  • Inline block : enclose the text in a single grave accent (`text`). Useful for a single word or a short command.
  • Multi-line block : enclose the text in three grave accents (```text```). Useful for multiple lines of content.

It is this second format, the code blocks multiline, which allows colors to be displayed on Discord specifying a language after the three accents.

Write in color on Discord

Discord uses the library Highlight.js for coloring. It does not have a built-in color picker. To color your text, you must use a code block and specify a supported language. Here are all the available colors and their uses.

1. Text in red

To display a text in red, uses the language diff in a code block. Each line that begins with a dash (-) in start of line appears in red.

```diff
- of text
- a dash at the beginning of the line
```

Diff code block displaying text in red on Discord
Make the text red on Discord. ©Antonin for Alucare.fr

2. Text in green

When it comes to green, we're back to language diff. The difference from the red version: each line must begin with a more (+) instead of a dash, in start of line.

```diff
+ some text
+ and a plus on each line
```

Text displayed in green in a diff code block on Discord
Text in green on Discord. ©Antonin for Alucare.fr

the + "At the beginning of the line" is still the most reliable way to get green in your messages Discord, regardless of the active theme.

3. Text in orange

To display text in orange, uses the language arm in a code block. Replace the spaces in your message with a low dash (_). Here is the syntax:

```arm
du_texte
encore_du_texte
```

Code block in the ARM language that displays orange text on the Discord
Orange text on Discord. ©Antonin for Alucare.fr

Only some characters Text recognized by the formatting tool turns orange. The result may vary depending on the theme and browser used.

4. Text in yellow

To display text in yellow, uses the language ansi in a code block. The content of each line is displayed directly in yellow, without any additional syntax.

```ansi```
[33mText in yellow[0m
[33mMore content here[0m
```

Note: Discord presents it more as a golden yellow / dark orange, not like a typical bright yellow.

5. Text in turquoise

To display text in turquoise, uses the language py (Python) in a code block. Place your content between quotation marks. This is necessary for the color to take.

```py
"infinite text...
and here again".
```

Python code block displaying text in turquoise on a Discord dark theme
Text in turquoise on Discord (dark theme). ©Antonin for Alucare.fr

Only the strings Text in quotation marks appears in turquoise. The appearance varies depending on the active theme.

6. Text in blue

For text in blue, uses the language fix in a code block.

```fix
of text
here too
```

text in blue on Discord
text in blue on Discord ©Antonin for Alucare.fr

7. Text in gray

To display text in gray, uses the language python. Each line that begins with a sharp (#) appears in gray, like a comment.

```python
# text
# more text
```

Python code block that displays text in gray on Discord
Gray text on Discord. ©Antonin for Alucare.fr

You can mix colored text and gray text in the same message. The gray color applies only to lines annotated with #.

Try these codes directly on the Discord and Alucare.fr:

Alucare.fr on Discord

Don't have an account yet? Find out how to create a Discord account in our dedicated article.

FAQs

How does markdown work on Discord?

the markdown is a system of text formatting Simple. You just add some special characters before and after your text to change its formatting, without using a visual editor.

The code blocks are among these tools for formatting available in your messages Discord. This is the most convenient way to structure and style your content on the site.

Do colors work on mobile devices?

Colors via code blocks are displayed in the desktop app and on the website. On mobile, the display may vary depending on the version of the app. The formatting markdown Basic formatting (bold, italics, underline, strikethrough) works on all platforms.

What to do when the colors don't change?

In most cases, the problem stems from a syntax error. Check to make sure there aren't any spaces in the wrong place or any characters other than the expected ones.

If the colors aren't showing up, go over the syntax line by line. With a little practice, you'll be able to fix it in no time.

What does the yellow box around a message mean?

A yellow box "around a message" means that someone has tagged or replied to one of your messages. It's just a visual notification—nothing out of the ordinary.

How do I create a subtitle on Discord?

the subtext is obtained by adding -# at the beginning of the line, followed by a space. Discord then displays the text in a smaller font, in the form of a subtext.

This feature is one of the options in subheadings available in the messages Discord recent.

Do you want to try out all these tips from text formatting Live? Join our server—it's the best place to practice.

Alucare.fr on Discord

To learn more, check out all our articles on Discord on the website. And if you get stuck on a piece of code, leave a comment, we're here to help.

👍Your opinion
The article is informative
The article is objective
The article answers my question
Content up to date
🔍 Found any errors? Tell us where!

Found this helpful? Share it with a friend!

This content is originally in French (See the editor just below.). It has been translated and proofread in various languages using Deepl and/or the Google Translate API to offer help in as many countries as possible. This translation costs us several thousand euros a month. If it's not 100% perfect, please leave a comment for us to fix. If you're interested in proofreading and improving the quality of translated articles, don't hesitate to send us an e-mail via the contact form!
We appreciate your feedback to improve our content. If you would like to suggest improvements, please use our contact form or leave a comment below. Your feedback always help us to improve the quality of our website Alucare.fr


Alucare is an free independent media. Support us by adding us to your Google News favorites:

36 comments on the discussion forum for "How to use markdown and write in color on Discord?"

  1. Hi Hi recently Discord did an update it changed quite a bit in terms of color blocks
    in fix we are more on yellow-orange but on pale blue

    And in any case thank you for your site it helped me a lot and I come back to it when I have doubts

    Reply
  2. Hi,
    Is there a way to write in color on a smartphone?
    I think you should be able to do the command lines directly via your smartphone (I haven't tried it) but when I do them on PC, it works and when I put myself on a smartphone there is no color ;(

    Reply
    • On the phone I think it can come from how discord coded it and suddenly I'm not sure 😉 (maybe not the same thing) I'm never on such ^^

      Reply
  3. Hi there

    I may be asking a stupid question but can we do it on the phone? Or is it just PC?
    Because personally I can't do it on the phone, I'm sure I'm doing it wrong
    Thank you for your reply ^^

    Reply
  4. Hello, your article helped me a lot, thank you very much. Tell me, would you know how to go to the line on Discord? Thanks in advance

    Reply
  5. Is there any way to hide the parameters that define the colors? like to write in red for example you have to show the – in front of diff for the syntax but I don't want you to see the dash, just the message in red

    Reply
  6. Hey!
    Thank you it's really great, I have a question, is it possible to combine bold + color? To make a title for example highlighted

    Reply
  7. Hello good night
    Is it normal that I have to put an arrow like this "<" to be able to write in blue because if I don't put the arrow it will write in yellow
    Thank you for your reply

    Reply

Post a comment on the discussion forum

Discord

Released on : May 13, 2015

Edited by : Discord Inc.

Available on : PC, Mac, Linux, Android, iOS, PlayStation, Xbox