How To Use Code Blocks In Discord

Most Discord users type and send their messages without much knowledge of coding. After all, you don’t need fancy coding to talk to someone else. There are some advantages, though, for learning basic codes to make your messages stand out.



Have you ever wondered how others send messages with fancy color backgrounds? These unusual messages and quotes are possible using code blocks.

Code blocks are codes that help your messages stand out by changing the background. With Markdown, you can go one step further and make format edits through simple uses of code. However, usually changing backgrounds is enough to make readers sit up and take notice.

Keep on reading to find out how to make your messages stand out from a crowd using code blocks.

What Is a Code Block?

A code block is a section of text in Discord that possesses a different color. The other color helps the text appear more obvious to any readers and also for aesthetic purposes. A code changes the background surrounding the text, even within the same message.

In other words, text not affected by a code block will appear normal, but the text you apply a code block to appears different. These code blocks also leave the formatting alone, keeping everything in the same default font.

Code blocks are created by inputting backticks at the beginning and end of messages. The” `” button is found right below the Esc key and the “1” key’s left.

If your code block only contains a single line of text, you only have to type one backtick at the beginning and end of the text, like so:

`Falcon Punch!`

Code blocks with more than one line of text require triple backticks. Here’s how a multiple-line code block looks like:

“`

Hello

Goodbye

Nice` “

There are no spaces between the triple backticks, and for the first triple backticks in multiple-line code blocks, start a new line before typing your message. The “Hello” above won’t appear if it’s in the same line as the first triple backticks.

It’s easy to get “Code Blocks” and “Markdown” confused. While both can alter how your text appears in Discord chat windows, the former changes the background while the latter deals with text formatting. Now, let’s dive into how you can use code blocks on different devices.

How to Use Code Blocks in Discord on a PC

Whether you’re using the Discord client installed on your Windows PC or a browser, code block usage is the same. We’ll focus on basic code blocks first in these instructions.

  1. Launch Discord on your PC.
  2. Go to any server.
  3. Pick a text channel in which you have message permissions.
  4. Move your mouse to the text box.
  5. Input one backtick.
  6. Type the contents of your message.
  7. End the message with one backtick.
  8. Press Enter to send the message.
  9. If you formatted the code block correctly, you’d notice the text having a different background color than other messages.
  10. Repeat as necessary.

If you want to type multiple-line code blocks, these steps are the ones for you.

  1. Go to Discord on your PC.
  2. Head to a server that allows you to type.
  3. Choose a text channel.
  4. Make sure you can type in the text box.
  5. Type three backticks without spaces between them.
  6. Press Shift + Enter to start a new line.
  7. Type multiple lines of text.
  8. At the end of the last line, type three more backticks.
  9. Send the code block with the Enter key.
  10. If you type everything correctly, you’ll see a multiple-line code block.
  11. Repeat if you wish.

These steps also work on Macs since Discord for macOS is practically the same as with PC users, so following both sets of instructions above will also do the trick.

How to Use Code Blocks in Discord on the iPhone App

Discord on the iPhone works with code blocks, too. That way, you don’t have to switch devices when you wish to send a message with code to other users.

However, most keyboards on mobile devices don’t show the backtick without some digging. You’ll have to find the backtick on your symbols keyboard, which only takes a few taps. Once you familiarize yourself with its location, typing code blocks will become second nature on iPhones.

Here’s how to use code blocks on Discord for the iPhone:

  1. Open your Discord app on your iPhone.
  2. Tap the icon for a server that allows typing.
  3. Go to any channel.
  4. Tap the text box to bring up your keyboard.
  5. Tap the symbols button, generally at the left side of the keyboard.
  6. Find the backtick key and tap it once.
  7. Type a message.
  8. End it with another backtick.
  9. Send your message to the channel.
  10. The code block will appear if you typed everything correctly.
  11. Repeat as necessary.

Multiple-line code blocks also work on iPhone. This is how to use them:

  1. Launch your iPhone Discord app.
  2. Go to a server.
  3. Open any text channel you can type in.
  4. Bring up your keyboard by tapping on the text box.
  5. Find and input three backticks.
  6. Start a new line by tapping the button below the backspace button.
  7. Input multiple lines of text.
  8. End with three more backticks right after the last line.
  9. Send the message to the channel.
  10. You’ll see a multiple-line code block if your backticks are formatted appropriately.
  11. Repeat as needed.

Some iPhone users may have backticks in different locations if they happen to use third-party keyboards. If your backticks are already displayed, you’re in luck, and you don’t have to find them. These instructions were for default keyboard layouts in mind.

Next, let’s talk about performing the same task but on an Android device.

How to Use Code Blocks in Discord on an Android Device

Android phones and tablets can support Discord, and there are even more third-party keyboard apps available. Some may display backticks right on the first keyboard screen, depending on your settings.

Code blocks also work in direct messages, meaning you can emphasize messages you send outside of a public chat.

Here are the steps for using code blocks on Android devices:

  1. Launch Discord for Android.
  2. Go to any of your servers.
  3. Head to a text channel.
  4. Tap on the text box to bring up your keyboard.
  5. Input a single backtick.
  6. Type your message and end it with another backtick.
  7. Send your message.
  8. Proper formatting will result in a perfect code block.

For multiple-line code blocks, you’ll have to follow these other instructions:

  1. Open the Discord app on your Android phone or tablet.
  2. Tap and open a server.
  3. Go to a text channel you can type in.
  4. Tap the text box and get ready to type.
  5. Type three backticks.
  6. Start a new line and type multiple lines of text.
  7. End with three backticks right after the last line.
  8. Send the text message to the channel, and the message with a new background will appear.
  9. You can repeat the process as many times as you want.

Make Sure You Read This

If you want your text messages to stand out on Discord, code blocks are one of the best ways to do so. They’re effortless to use, and you’ll find yourself typing them quickly with enough practice. Just a couple of extra keystrokes, and suddenly you have a message that adds emphasis without the extra effort.

Have you seen friends use code blocks before reading this? Do you find the various text formatting tricks on Discord interesting? Let us know what you think in the comments section below.

Next Post Previous Post
No Comment
Add Comment
comment url