This wikiHow teaches you how to create a code line or code box in Discord chat. You can do this on both desktop and mobile versions of Discord. Open Discord. Click or double-click the Discord app icon, which resembles the white Discord...
Method 1 of 2:
On Desktop
Open Discord. Click or double-click the Discord app icon, which resembles the white Discord logo on a purple background. This will open the Discord chat window if you're logged in.
Select a channel. Click the channel to which you want to send your text in the upper-left side of the page.

Click the message text box. This is at the bottom of the Discord window.
Press the back-tick key. It's the ` key typically found in the upper-left side of the keyboard on the same key as the tilde (~). Doing so will type one back-tick into the Discord text box.
Enter the text you want to format. Type in the word or phrase you want to format as a line of code.
Press the back-tick key again. You should now have one back-tick on each side of the text you're sending as a code.
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]Method 2 of 2:
On Mobile

Open Discord. Tap the Discord app icon, which resembles a white Discord logo on a purple background. Doing so will open the Discord chat page if you're logged into your account.

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

Tap the chat text box. It's at the bottom of the screen.
Type a back-tick. A back-tick can be typed in a couple of different ways depending on your phone:
Enter your text. Type in the text you want to format.
Type another back-tick. You should now have one back-tick on either side of your text.
Tap the "Send" icon
. It's to the right of the text box.
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 tap the "Send" icon.Update 05 March 2020
ncG1vNJzZmismaXArq3KnmWcp51ktbDDjK2mZp6fp7qiwIytnLGsXZbAbq%2FOnZxmoZ5isaq%2FwqipnQ%3D%3D