​How to format text and use Code Blocks in Discord

Have you ever saw people writing in discord with underlines, bold, italics and even strikethrough texts?

If you can’t wait know:

How the hell did they add different fonts and colors to their texts, then be patient, good news is waiting for you.

You will feel lucky after learning how to format texts as codes in Discord from this post.

So, read the post carefully to inject some flavors to your day to day Discord chats.

Discord’s Text formatting engine: Behind the scenes

Before going ahead, you should know the scenes behind Discord’s text formatting.

Whenever you start a chat in Discord, a very smooth, lightweight engine operates in the background.

This engine is referred to as Markdown.

discord-icon

Discord uses this engine to make your sentence stand out.

It’s completely a text-based engine and so it uses smartly placed symbols to format your text in bold, italics, underlined, strike-through etc.

You just have to add a few characters before and after your desired text to simply change the format.

Not just Markdown, Discord also added a new feature called Highlight.js which is used for code block highlighting. This will highlight that specific text you inserted.

Let’s move aside those nitty-gritty details and check out some sweet styles that you can add in Discord.

10Scopes Presents : Gaming Gears, Huge Saver!

Here at 10Scopes , I research and curate the best deals for the great gamers like you. Check the link below and save huge $$$ on gaming gears and accessories.

Basic text formatting writing styles in Discord

So, now the fun begins.

There are some sweet writing styles which you can apply in discord.

Markdown engine will automatically generate these styles when you add a few characters to your text.

I am going to show you some text formats, how they can be used along with some suitable examples.

Text formatting styles

How to use it

Example

Output

Bold

Use two asterisks ( * ) before and after the text

** this sentence is bold**

this sentence is bold

Italic

Use only one asterisk before and after the text

*this sentence is italic*

this sentence is italic

Bold + Italic

Use three asterisks before and after the text

***this sentence is bold and italic***

this sentence is bold and italic

Underline

Use two Underscores ( _ ) before and after the text

__this sentence is underlined__

this sentence is underlined

Strikethrough

Use two tildes ( ~ )  before and after the text

~~this sentence is crossed out~~

this sentence is crossed out

Bold + Italic + underline + strikethrough

Use two tildes, two underscores and three asterisks before and after the text

~~__***this sentence is bold, italic, underlined and crossed out***__~~

this sentence is bold, italic, underlined and crossed out

‘Escape’ text and see underscores and asterisks

Suppose, you actually want to see the underscores or asterisks in a message just like in an emoji.

You can simply see it by using the backslash ‘\’ key to skip markdown engine formatting.

Example

Output

\_\_\*\*\*Wow! Amazing***__

__***Wow! Amazing***__

NB: You can either use backslash ‘\’ after the text or you can simply avoid them also. But, it’s mandatory to use backslash before the text.

10Scopes Recommend This Antivirus (Best Deal)

Here at 10scopes, I highly recommend you to use Thor antivirus.

Because, It's the only antivirus out there that has 4 in 1 protection system.

Antivirus + AntiMalware + AntiRansomware+ Internet Security

Some Basic Code Blocks in Discord

Want to know a cool stuff?

Discord supports Code blocks and you can customize your own code blocks using backticks (`).

Some people find it difficult to identify the Backtick (`) on their keyboard.

Well, it’s obvious because you don’t use this symbol often.

This symbol (`) is below the Esc button. Click on it and you will be able to use backticks.

Code Blocks

How to use it

Example

Output

Single line Code Blocks

Use a backtick (`) before and after the text

`this is a single line code`

this is a single line code

Multiline Code Blocks

Use three backticks (```) before and after the text

```Wow!

That’s a nice blog

Keep going```

Wow!

That’s a nice blog

Keep going

Amazing isn’t it?

It’s not over yet. Next thing I am going to show you is how to use colored texts in Discord.

Format Colored texts in Discord

Well, I searched the entire net for some cool color texting formats in Discord and ended up playing PUBG due to frustration.

Somehow I piled up information about using colored texts in Discord.

And now, I am going to share this with you guys.

Remember the feature called Highlight.js. Discord doesn’t have any inbuilt feature to highlight texts. Rather we are going to modify the texts using code blocks and symbols.

Here’s how it works.

  1. First of all we have to create a multiline code block using the backticks and specify the syntax highlighting language.
  2. We will exploit some syntax highlighting language for coloring the texts.

NB: There are some limitations in this method like your text has to be connected in one word in some reference syntax highlighting language.

It means that, in some cases, you can’t type: This is a beautiful world.

Instead you have to write: This_is_a_beautiful_world or, Thisisabeautifulworld.

Okay, so now let’s learn how to add colors to text.

Color

How to use it

Example

Output

RED

Add diff syntax and use dashes(-) before the colored text

```diff

  • The text is red!

```

  • The text is red!

ORANGE

Add CSS syntax and include brackets [] around the text

```css

[ the text is orange ]

```

  [ the text is orange ]

YELLOW

Use fix syntax and the text will be yellow by default

```fix

The text is yellow

```

  The text is yellow

Apache syntax for YELLOW

Use apache syntax and use %{ before the text and a } after the text. Make sure not to include any spaces or you can use underscores after each word.

```apache

%{the_text_is_yellow}

```

 %{the_text_is_yellow}

GREEN

Use diff syntax and include a + sign before the text

```diff

+ The text is green

```

+ The text is green

LIGHT GREEN

Use CSS syntax and include quotation marks” “ around the text

```css

“The text is light green“

```

“The text is light green“

DARK GREEN

Use bash syntax and include quotation marks “ “ around the text

```bash

“the text is dark green“

```

  “the text is dark green“

BLUE

Use ini syntax and include [] around the text

```ini

[ the text is blue ]

```

   [ the text is blue ]

Apache syntax for BLUE

Use CSS syntax and put a dot . before the text. Make sure to not include any spaces

```css

.Thetextisblue

```

    .Thetextisblue

FAQ

Question: What is Markdown?
Answer: Markdown is a smooth, lightweight engine that runs on the background of Discord for text formatting.

Question: What is Highlight.js?
Answer: Highlight.js is a feature of discord used for code block highlighting.

Question: Where is the Backtick mark in keyboard?
Answer: Check for the backtick mark under the Esc Button.

Question: How to escape text and see the underscores?
Answer: Use Backslash (\) after every words in your text to see the underscores.

Question: Why can’t I color my text yellow for apache syntax?
Answer: Check that whether if accidentally inserted a space between the words. Try omitting the spaces or use underscores ( _ ). 

Final Thoughts

Discord is a communication platform for mainly gamers.

Gamers have cool discord channels where you can communicate with others.

With the simple tricks I provided you, you can impress others also. Amaze them with your skills.

The steps are very easy and easily executable.

So what are you waiting for?

Open your Discord and get into action.

You may also like

>