How to Format Text as Code in Discord

This eMinds CA teaches you how to create a code line or code box in a disk code. You can do this on both desktop and mobile versions.

On Desktop

Open Discord. Click or double-click the Discord app icon, which looks like a white color discord logo on a purple background. If you are logged in, then this disk will open the chat window.

If you are not logged in, enter your email address and password and click Login.

Select a channel. Click on the channel in which you want to send your text to the top-left of the page.

Click on the message text box. This is at the bottom of the Discord window.

Press the back-tick. This key ‘is usually found in the same key as the tilde (~) in the upper-left of the keyboard. By doing so a back-tick disc will be typed in the text box.

If you want to format a block of code, skip this step and the next three steps.

Enter the text you want to format. Type in the word or phrase that you want to format as a line of code.

Press back-tick again. Now you should have a back-tick on each part of the text you are sending as a code.

For example, if you’re trying to format the line “I like trains”, you would have `I like trains` typed into the text box.

Press ↵ Enter. Doing so will format and send your message.

Format a block of code. If you want to send a sample of code (e.g., an HTML page) to someone through Discord, you can type three back-ticks (“`) before and after the text and then press ↵ Enter.[1]

For example, to format the code “<!DOCTYPE html>” as a block, you would type “`<!DOCTYPE html>“` into Discord and press ↵ Enter.

If you want to set a specific language for your code block, type the three apostrophes, type in the language (e.g., css) on the first line, create a new line, and add the rest of your code before typing the closing three apostrophes.

On Mobile

Open Discord. Tap on the Discord app icon, which looks like a white discord logo on a purple background. If you log in to your account, this will open the Discord chat page.

Select a channel. Tap the channel on which you want to send your text.

Tap on the chat text box. It’s at the bottom of the screen.

Type back-tick. A back-tick can be typed in a few different ways depending on your phone:

iPhone – Tap 123 in the lower-left corner of the keyboard, tap and hold the Apostrop icon at the top of the back button, drag your finger to select the far-back back-tick icon (`), and your finger Leave it

Android – Tap in the lower-left side of the keyboard! # 1, then tap on the `back-tick icon.

If you want to format a block of code instead, leave this step and the next three steps.

Enter your text. Type in the text you want to format.

Type another back-tick. Now you should have a tick on either side of your text.

For example, if you “Hello there!” If you want to format the phrase, you will type `hello ‘in the chat box.

Tap the “Send” icon . It’s to the right of the text box.

Format a block of code. If you want to send someone a sample of code (eg, HTML page) via Discord, you can type three back-ticks (“ `) before and after the text and then on the” send “icon Can tap.

For example, to format the code “<! DOCTYPE html>” as a code, you type ‘“!

If you want to set a specific language for your code block, then type three apostrophes, type the code language (e.g., CSS) in the first line, create a new line, and add the rest of the code before typing the closing three . Omitted characters

Creative Commons License

Leave a Reply