How to Format Text as Code in Discord

Method 1 of 2:

On Desktop

  1. How to Format Text as Code in Discord Picture 1
    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.
    1. If you aren't logged in, enter your email address and password and click Login.
  2. How to Format Text as Code in Discord Picture 2
    Select a channel. Click the channel to which you want to send your text in the upper-left side of the page.
  3. How to Format Text as Code in Discord Picture 3
    Click the message text box. This is at the bottom of the Discord window.
  4. How to Format Text as Code in Discord Picture 4
    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.
    1. If you want to format a block of code, skip this step and the next three steps.
  5. How to Format Text as Code in Discord Picture 5
    Enter the text you want to format. Type in the word or phrase you want to format as a line of code.
  6. How to Format Text as Code in Discord Picture 6
    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.
    1. For example, if you're trying to format the line "I like trains", you would have `I like trains` typed into the text box.
  7. How to Format Text as Code in Discord Picture 7
    Press Enter. Doing so will format and send your message.
  8. How to Format Text as Code in Discord Picture 8
    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]
    1. For example, to format the code "" as a block, you would type`````` into Discord and press Enter.
    2. 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.
Method 2 of 2:

On Mobile

  1. How to Format Text as Code in Discord Picture 9
    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.
  2. How to Format Text as Code in Discord Picture 10
    Select a channel. Tap the channel to which you want to send your text.
  3. How to Format Text as Code in Discord Picture 11
    Tap the chat text box. It's at the bottom of the screen.
  4. How to Format Text as Code in Discord Picture 12
    Type a back-tick. A back-tick can be typed in a couple of different ways depending on your phone:
    1. iPhone — Tap 123 in the bottom-left corner of the keyboard, tap and hold the apostrophe icon above the return button, drag your finger left to select the far-left back-tick icon (`), and release your finger.
    2. Android — Tap !#1 in the lower-left side of the keyboard, then tap the ` back-tick icon.
    3. If you want to format a block of code instead, skip this step and the next three steps.
  5. How to Format Text as Code in Discord Picture 13
    Enter your text. Type in the text you want to format.
  6. How to Format Text as Code in Discord Picture 14
    Type another back-tick. You should now have one back-tick on either side of your text.
    1. For example, if you want to format the phrase "Hello there!", you would have `Hello there!` typed into the chat box.
  7. How to Format Text as Code in Discord Picture 15
    Tap the "Send" icon
    How to Format Text as Code in Discord Picture 16
    . It's to the right of the text box.
  8. How to Format Text as Code in Discord Picture 17
    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.
    1. For example, to format the code "" as a block, you would type`````` into Discord.
    2. If you want to set a specific language for your code block, type the three apostrophes, type in the code 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.
3.9 ★ | 18 Vote

May be interested

  • How to Read and Understand OBD CodesPhoto of How to Read and Understand OBD Codes
    you're cruising down the road, enjoying your drive, when all of a sudden that most mysterious of indicators turns on: 'check engine'. what does it mean? the engine is a pretty vast and intricate machine, so 'checking the engine' isn't...
  • How to Make an Exe FilePhoto of How to Make an Exe File
    this wikihow will teach you you how to create a basic exe file on a windows computer, as well as how to create a container for that file that will install it on another computer. exe files are used to install programs or add files to a...
  • How to Write PseudocodePhoto of How to Write Pseudocode
    this wikihow teaches you how to create a pseudocode document for your computer program. pseudocode essentially entails creating a non-programming language outline of your code's intent.https://whatis.techtarget.com/definition/pseudocode...
  • How to Convert from Binary to DecimalPhoto of How to Convert from Binary to Decimal
    the binary system is the internal language of electronic computers. if you are a serious computer programmer, you should understand how to convert from binary to decimal. this wikihow will show you how to do this. === using positional...
  • How to Find a Good ProgrammerPhoto of How to Find a Good Programmer
    a good programmer is a person who can resolve the problem with a simple and best method and make sure the quality of the output and the developed code is at its best. it is tough to get a programmer these days as the value for cost is not...
  • How to Recognize a Good Software Tester from the LotPhoto of How to Recognize a Good Software Tester from the Lot
    software testers are aplenty but good testers are scarce or rather there are no set parameters by which a good tester can be gauged. quality of the software product can be guaranteed if the testing is done by a team of good testers. be...