In Discord, you can format messages into a code format. This will make the text look more like code. You can do this on both Desktop and Mobile versions of the app.
How to post code in Discord
Discord is a great way for developers to keep in touch with each other – it even has a Developer Mode, which is largely used to create bots for Discord. We’ll now cover how you can post code in Discord.
First of all, launch the Discord app. Go to your server list, and select one of the servers. Then, click on the text channel you wish to post code in. In the input box near the bottom of the screen, type a back-tick. A back-tick looks like this `
The back-tick key should be located in the top left of your keyboard, beneath the Escape-key. Once you’ve typed out a back-tick, type the text you wish to format into code. For example, `Good Morning.
At the end of your message, type another back-tick. The text should now have changed format.
Click the Enter-key to send the formatted message.
Alternatively, if you wish to format a block of code, the steps are a little different. A block of code refers to a block format, in which code resides. This is often how code is formatted.
To create a block of codes, you must have three back-ticks on either side of the text as opposed to one on either side. For example, “`code sample“`
Press the Enter-key to send the message. A block of code should then appear. You can also use this formatting method to send samples of code in Discord.
Launch the Discord app, and press the three lines in the top left. This will cause the left side tab to appear. On the far left of the screen, there should be a column of server icons. Locate the server you wish to post code in, and press on it. This should open up the server.
Next, select the text channel you want to post the code in. The list of text channels should be available in the left side tab, underneath the section for ‘text channels’.
Once you’ve selected a text channel, swipe left to close the left side tab. Go to the input box near the bottom of the screen, and press on it. Now, type a back-tick. A back-tick looks like this `
If you’re using an iOS device, the back-tick key can be found by pressing the 123-key, and long-pressing on the apostrophe-key. The apostrophe key is usually found above the Return-key. Once you’ve long-pressed the apostrophe key, a set of symbols should appear above the key. Without letting go of the screen, drag you finger to the first symbol. This is the leftmost symbol.
If you’re using an Android device, you can find the back-tick key by pressing the !#1-key and then pressing the 1/2-key. The back-tick key should be located in the top left, beneath the 1-key.
After typing a back-tick, start typing out the message you wish to format into code. For instance, `Hello Everyone
Once you’re done typing out your message, type another back-tick.
Finally, press the arrow icon to send the message. The message should now be formatted into code.
Alternatively, if you want to create a block of code, type three back-ticks before and after your message. For instance, “`code example“`
When you’re finished, press the arrow icon to send the message. The message should now be formatted into a block of code.
In conclusion, you can format messages into code on Discord. You can do this on both the Desktop and Mobile versions of the app. You can either format a message into code, or format a block of code.