This article was co-authored by How.com.vn staff writer, Rain Kengly. Rain Kengly is a How.com.vn Technology Writer. As a storytelling enthusiast with a penchant for technology, they hope to create long-lasting connections with readers from all around the globe. Rain graduated from San Francisco State University with a BA in Cinema.
This article has been fact-checked, ensuring the accuracy of any cited facts and confirming the authority of its sources.
This article has been viewed 919,481 times.
Learn more...
Do you want to share a code snippet in a Discord chat? There's an easy way to format any type of text to make it look like code rather than plain text. You'll just need to encase your text with back-ticks (`) to use Discord's chat formatting. This How.com.vn will show you how to use special characters in Discord to create a code line or code box on your computer, Android, iPhone, or iPad.
Things You Should Know
- Use a back-tick (`) on either side of the text to format a line of code.
- For example, your text should look like: `your text here`
- To create a block of code, use three back-ticks (```). It should look like: ```your text here```
Steps
- Open the Discord app. If you aren't already logged in, enter your email and password to do so now.[1]
- Discord is available for iOS in the App Store and for Android in the Google Play Store.
- Navigate to a server or Direct Message. Tap a server from the left panel, or tap a recent Direct Message to open it.Advertisement
- Enter your text encased by ` on both sides. You'll need to access your punctuation menu to find it. For example, your text should look like `your text here`.
- On iPhone or iPad, tap and hold the apostrophe key (') to access special characters. The back-tick is the first option on the left.
- On Android, open the special punctuation menu on the lower-left side of the keyboard to find the backtick key.
- Tap the airplane icon to send it. When your message sends, the text will be in a code block.
- You can also censor text by placing two vertical bars (|) on each end of your text.
- Create a multi-line code block (optional). If you want to create a code block that has more than one line of text, you'll just need to alter the punctuation slightly. Do the following:
- Encase your text in (```) on both sides.
- Your text should look like:
```line one
line two```.
- Your text should look like:
- Tap the airplane icon to send it.
- Encase your text in (```) on both sides.
- Open the Discord application. Discord is available for Windows, Mac, and Linux.[2]
- You can also use Discord in your browser at https://discord.com/.
- Navigate to a server or Direct Message. Click a server from the left panel, or click a recent Direct Message to open it.
- If needed, you can start a server or join a server.
- Enter your text encased by ` on both sides. You'll need to access your punctuation menu to find it. You can find the back-tick key in the top-left corner of your keyboard. If needed, you can enable the on-screen keyboard to use it.
- For example, your text should look like `your text here`.
- To create a multi-line code block, encase your text in (```) on both sides.
- Your text should look like:
```line one
line two```.
- Your text should look like:
- Press ↵ Enter to send your message. When your message sends, the text will be in a code block.
- Create colored text (optional). This will only work on the desktop application. Colored text will not appear on the mobile app. Use the following format:
- Orange:
```arm
your_text_with_underscores
```. - Red:
```diff
-your text after a hyphen
```. - Blue:
```css
[your text in brackets]
```. - Cyan:
```yaml
your text here
```. - Green:
```diff
+your text after a plus sign
```.
- Orange:
Community Q&A
- QuestionMy message shows as a code block in Discord, but how do I add a straight colored line beside the block?Community AnswerUnfortunately you can't color single-line code blocks in Discord. Using a block code should work, however.
- QuestionWhen I use text highlighting, can I add code using the things?Community AnswerThat isn't possible unless you use two code boxes with two color codes.
- QuestionHow do I color text on discord?Community AnswerYou can format Discord code blocks to show colored text, you can do ```diff -(text here) ``` to make text red.
Video
Tips
References
About This Article
1. Open the chat box in Discord.
2. Type a back-tick (`) on either side of text to create a one-line code box.
3. Type three back-ticks (```) on either side of the text to create a multiple-line code box.
Is this article up to date?
⚠️ Disclaimer:
Content from Wiki How English language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.
- - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
- - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
- - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
- - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.