How To Easily Use Code Block In Discord

Discord lets you format text using Markdown, a writing style that uses simple formatting and code blocks. Check out this guide to use Discord code blocks.”

Code Blocks in Discord

Why send plain texts when Discord offers cool features to spruce up your messages? Discord’s popularity doesn’t show signs of stopping anytime soon. There is a good chance that you are an avid user of Discord, given its popularity among non-gamers.

code blocks in discord

Formatting is useful when you send plain-looking messages on a big Discord channel. It makes you stand apart from the rest of the crowd. So, if you want vibrance to your messages on Discord, knowing Discord code blocks is necessary. We will explain the concept of code blocks in Discord and tell you how to send messages using it.

What Is a Code Block?

A code block in Discord lets you highlight a complete message or a section of the message while chatting. Plain text messages sometimes fail to convey the message as intended.

So, using code blocks, you can highlight a certain word or phrase to convey more to the readers.

How to activate the Code Block feature?

You can activate the code block using a unique symbol called “backtick”. The backtick( ` ) and tilde( ~ ) are two uncommon symbols that find scarce use in users lives. You can find the backtick key on your keyboard.

It is located below the Esc key on your keyboard.

How to use a single line code block in Discord?

By default, a single pair of backtick symbols can highlight a single line of text only.

For e.g. `this is a single line code block`

You have to place a single backtick at the beginning and the end of the sentence. By doing this, you can use a single line code block.

 

How to use a multi-line code block in Discord?

Unlike the single backtick pair, you need three backticks to use a multi-line code block.

For e.g. “` this is a multi-line code block. You can write a paragraph and Discord will highlight the whole paragraph.“`

You need to use three backticks at the start and the end of the paragraph message in the Discord chat.

Learn how to use Code Blocks on different platforms

The methods to use code blocks on different platforms vary a bit. To master using a code block for chatting on all platforms, you need to know how to activate a code block.

We will list out the step-by-step methods to use code blocks on different OS and devices.

Thus, you can become a wordsmith and gain the attention of other members in Discord servers in no time.

How to Use Code Blocks in Discord on a PC?

The backtick symbol usage is crucial to implementing code blocks in Discord. To use code blocks on a PC, do as follows:

  • Launch the Discord app on your Windows PC.
  • If you don’t have the app installed on your PC, open your browser.
  • Now, search for Discord and open the official link.
  • Log in to your account and then enter a discord server.
  • Make sure that you have typing privileges enabled for the discord server.
  • Now, go to the chatting area and type a single backtick to start the code block. 
  • Then type your message and close it using a single backtick.
Use Code Blocks in Discord
  • Now press Enter key to send the message. 
  • You will notice that the message has a different dark background. It is different from the normal messages you send on Discord.

Note: The message will be highlighted only if you used backticks correctly. Any text outside the backtick will appear without a background highlight. Moreover, the text inside the backticks will appear with a black highlight when you type it.

How to Use Code Blocks in Discord on the iPhone or iPad App?

Using code blocks in Discord on an iPhone is a similar experience to using it on a PC. The main issue is finding the backticks symbol which is buried deep into the keyboard button. To use code blocks on iPhone, repeat the following steps:

  • Open the Discord app on your iPhone and log in.
  • Tap on any discord server using the left-hand side menu and open it.
  • Ensure that the Discord server allows you to type and send messages in it.
  • Now, tap the text area to launch your keyboard. Then tap on the “123” button which is located in the bottom-left corner.
  • Press and hold the period(.) symbol button to reveal the backtick symbol.
  • Add one backtick and then begin typing a single-line message. Now, insert another backtick at the end of the message.
  • Click on Send and you will see that your message appears with a highlighted background.
  • For writing multiple lines using code blocks, you need three backticks. 
  • Insert three at the beginning and three when you finish typing the message.
  • Tap on send and you will see the entire paragraph appears with a highlighted background.

How to Use Code Blocks in Discord on an Android Device?

As usual, you need to use backticks to use code blocks in Discord’s Android app. Repeat the following steps:

  • Open the Discord app on your Android smartphone and log in to your account.
  • Now, tap on any of the Discord servers from your list.
tap on any of the Discord servers
  • Open the Discord server and find a channel that allows the participants to send messages.
  • Now, tap on the text input area to open your keyboard.
  • Tap on the “123” button located in the bottom left corner of the keyboard.
Tap on the "123" button
  • Then hit the “=\<” button to reveal special characters and find the backtick character in it.
  • Tap on it twice to add two backticks into the message box.
  • Now, tap in the center of the two backticks to position the cursor between them.
  • Type your single line message and then tap the send button.
code blocks
  • Your new message will have a darker background behind it.
  • For multiple line messages, you have to use three backticks and the start and at the end of the message.
  • Add three backticks, type your long message of many lines and then close it with three backticks.
  • Now, hit the send button and you will notice that the text message has a background behind it.

Basic Text Formatting in Discord 

You can apply basic text formatting in Discord using Markdown. Discord supports Markdown which is a markup language that is useful for formatting.

Using Markdown, you can format your text message in Discord and convey the meaning better. It is very easy to use and you can make your text bold, underline it, italicize it, and so on.

How to Strikethrough Text in Discord?

You need to use the Tilde(~) symbol to type a Discord Strikethrough message. You need to press the same keyboard key which you used for typing backticks. It is located below the Escape key on almost all standard keyboard layouts. To strikethrough text in Discord, repeat the following steps:

  • Open a Discord server and enter a channel with typing permissions enabled for you.
  • Now, type two tildes(~~) and then type the text message to which you want to apply strikethrough.
Strikethrough Text in Discord

How to Underline Text in Discord using underscores(_) symbol?

Underlines denote that a message holds some degree of importance. To underline text in discord, you need to use the underscores symbols.

  • Open a Discord server and enter a channel with typing permissions enabled for you.
  • Now, type one underscore(_) symbol. Then type the text message to which you want to apply the underline formatting.
  • Then close the text message with another underscore(_) symbol. 
  • Your message should look something like this: “_Underline this text._”. Ignore the quotation marks.
Underline Text in Discord
  • Tap the send button and check if the text message has the underline formatting to it.

How to Make Text Bold in Discord using asterisks symbol?

You need to use the asterisks symbol to make the text bold in Discord. Applying bold formatting depicts the emphasis you want to put on certain words in the text. To make text bold in Discord, do as follows:

  • Open a Discord server and enter a channel with typing permissions enabled for you.
  • Now, type two asterisks(**) symbol. Then type the text message/word to which you want to apply the Bold formatting.
  • Type two more asterisks(**) symbols at the end of the message/word and hit the Send button.
Make Text Bold in Discord
  • You will notice that some of the text appears in bold formatting in the message.

How to make text Italics in Discord?

You need to use a single asterisk to Italicize text in Discord. Just place your text between two asterisk symbols. For e.g., *make this message bold.* will display it as italics text.

make text Italics in Discord

Combining Discord Text Formatting Options

You can also combine discord text formatting options to have more control over the text. You can highlight specific areas using these markdown elements. Moreover, you can use the vertical bars to add block quotes to send a quote that has a bigger font size.

Conclusion

These were the best methods to use code blocks in Discord. Apart from that, you can apply basic formatting without using CSS syntax, bash, or JSON syntax.

You can use characters like brackets, asterisks, or backslashes to add more differentiability to your text messages.

Even text coloring is possible by using mild CSS syntax to change the color to make the text yellow, orange, or many other colors.