How to Format Code on Discord (Mobile)

by slatouche in Circuits > Mobile

139590 Views, 2 Favorites, 0 Comments

How to Format Code on Discord (Mobile)

images.png

This instruction set is for people who code regularly and also uses the discord app.

This will teach you how to send text and then format it into any coding language you like.

Open the Discord App

Screenshot_20190428-224855_One UI Home.jpg

Simply open the discord app.

Select a Discord Channel

Screenshot_20190428-224931_Discord.jpg

Select the channel you wish to send a message to.

Select the Chat Box

Screenshot_20190428-224941_Discord.jpg

Select the chat box to open your keyboard and begin typing.

Type a Back-tick

Screenshot_20190428-224948_Discord.jpg

The method of typing a back-tick varies between operating systems and keyboards If you want to format a block of code, skip to step 8.

Warning: Finding the back-tick on certain keyboard can require several button selects to get to the correct page.

Type the Text That You Want Formatted

Screenshot_20190428-225022_Discord.jpg

Enter the text that you will be converting into code later.

Type Another Back-tick at the End of Your Text

Screenshot_20190428-225030_Discord.jpg

After entering the text, add a back-tick at the very end.

Send the Text

Screenshot_20190428-225047_Discord.jpg

Select the send icon.

Type Three Back-ticks (For Formatting a Block of Code)

Screenshot_20190428-231906_Discord.jpg
Screenshot_20190428-231910_Discord.jpg
Screenshot_20190428-231915_Discord.jpg

If you want to set a specific coding language, type in the name of the coding language directly after typing in the three back-ticks, then create a new line.

The following coding languages work on Discord: markdown, ruby, python, perl, css, json, java, javascript, cpp (C++), php.

Paste or Type the Text Into Your Text Box

Screenshot_20190428-225121_Discord.jpg

Simply paste (if you copied the text) or enter the text manually.

Type Another Three Back-ticks at the End of the Text, Then Send the Text

Screenshot_20190428-225218_Discord.jpg
Screenshot_20190428-225223_Discord.jpg
Screenshot_20190428-225230_Discord.jpg

Thanks for viewing my instructions set on how to format code on the Discord app.

I feel that many people in the computer science major are also gamers, and Discord is the perfect app for gamers

to communicate with one another. It only makes sense that code should also be used for communication between computer science majors.

You can see if your text has been properly formatted by comparing it to the text in the images. The font will change, and the text will be surrounded by a rectangle.