How to Format Text as Code in 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.
- If you aren't logged in, enter your email address and password and click Login.
- 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.
- 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 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.
- 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 "" as a block, you would type`````` 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.
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:
- 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.
- Android — Tap !#1 in the lower-left side of the keyboard, then tap the ` back-tick icon.
- If you want to format a block of code instead, skip this step and the next three steps.
- 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.
- For example, if you want to format the phrase "Hello there!", you would have `Hello there!` typed into the chat box.
- Tap the "Send" icon
- 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.
- For example, to format the code "" as a block, you would type`````` into Discord.
- 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
You should read it
- How to download, create an account and log into Discord
- 6 best bots to improve Discord server
- How to create the Discord bot on the Raspberry Pi
- Is it safe to use Discord?
- How to add a bot to the Discord server
- ChatGPT will come to Discord chat
- How to prevent Discord from hanging, freezing in Windows 10/11
- How to change Discord language into Vietnamese
May be interested
- How to hide the game you're playing on Discorddiscord is an online voice and text chat platform that allows you to communicate with others playing the same game as you.
- Steps to customize Discord interfacediscord has a variety of settings available that you can tweak to customize the look and feel, such as switching to a light theme, making messages more compact, adjusting color saturation, and more.
- How to fix Discord error does not openthe discord not opening issue has become one of the biggest problems for gamers who use this app as their main communication tool. this is a frustrating problem, but the fix is something that many people can easily do.
- Ways to fix audio problems in Discordwhile it was originally built for discord, it has now evolved into a networking platform for all types of communities. whether it's for watching livestreams or playing voice games with others, audio is a key element of discord.
- 5 easy ways to know if someone has blocked you on Discordare you worried that a friend has blocked you on discord? even though discord doesn't tell you directly, there are easy ways to tell if someone has blocked you on discord. you can even see if you've been blocked without sending a direct message! this tipsmake article covers all the signs that you're blocked on discord, whether you're using a computer or the mobile app.
- Steps to permanently delete Discord accountdiscord is a great app that allows you to chat with your friends and meet like-minded people. but it's not for everyone. if you want to get out of discord, you'll wonder if it's possible to delete your discord account.
- How to Use Discord on a PC or Macthis wikihow teaches you how to get started with discord when you're using a computer. navigate to https://www.discordapp.com. you can use any web browser, such as safari or opera, to use discord on your computer.
- Top 5 best Discord servers you should joinwhile it was once a popular chat app just for gamers, discord has now evolved into a 'chat place for everyone'. the app is available on windows, mac, ios, android and desktop.
- How to leave the Discord serverif you no longer want to be part of a discord server, you can leave the server to stop interacting with it further. the following article will show you how to do this in discord on desktop, web, and mobile.
- How to create a Discord account and log in to Discorddiscord can currently be used on both computers and smartphones, however this software does not yet support vietnamese so it will be a barrier for gamers who are not good at english. therefore, the following article will guide you to download, install, create an account and log in to discord.