Want to inject some flavor into your everyday text chat? You're in luck! Discord uses Markdown, a simple plain text formatting system that'll help you make your sentences stand out. Here's how to do it! Just add a few characters before & after your desired text to change your text! I'll show you some examples...
What this guide covers:
- Text Formatting
- Organizational Text Formatting
- Code Blocks
- Block Quotes
- Spoiler Tags
- Syntax Highlighting
Italics *italics* or _italics_
Underline italics __*underline italics*__
Bold **bold**
Underline bold __**underline bold**__
Bold Italics ***bold italics***
underline bold italics __***underline bold italics***__
Underline __underline__
Strikethrough ~~Strikethrough~~
Don't want to use markdown? You can slap a backslash in front of your statement, or put your message in a code block, and it'll escape the markdown formatting. You'll see those asterisks as you'd like!
To create a header, you need to include a specific number of the hash/pound sign character (#). Use (#) for a big header, (##) for a smaller header, or (###) for an even smaller header as the first character(s) in a new line.
Like Headers, you can add subtext to any chat message. To do so, add a (-# ) before the text you want to appear in the subtext. Don’t forget the space after # and before your message.
You can use masked links to make text a clickable or pressable hyperlink. To do so, you need to include the text you want displayed in brackets and then the URL in parentheses. For example:
If you don't wish to embed a link, you can wrap the link with <>
to remove the embed for that specific link.
You can create a bulleted list using either (-) or (*) in the beginning of each line. You can indent your list by adding a space before (-) or (*) at the beginning of each line.
To create an ordered list, add line items with numbers followed by periods. The numbers don't have to be in numerical order, but the list will always start with the first number. You can indent your list by adding a space before the number at the beginning of each line.
Discord also supports code blocks as well. You can make your own code blocks by wrapping your text in backticks (`)
You can also use three backticks (```) to create multiline code blocks, like this beautifully written haiku.
The syntax to use Block Quotes is > or >>> followed by a space.
> at the beginning of a line of text, creates a single-line block quote.
>>> at the beginning of a line of text, creates a multi-line block quote. All text from >>>
until the end of the message will be included in the quote.
You can manually tag spoilers by using the syntax ||
around your text or by typing /spoiler
before your message. This is also negated by a code block.
If you really want to spruce up your code blocks, you can denote a specific language for syntax highlighting, by typing the name of the language you want the code block to expect right after the first three backticks beginning your code block. An example...
There are many different languages in place of Markdown that Discord's syntax highlighting support. Each different language has its own approach to highlight-able syntax. Note that you won't be able to view syntax highlighting on the mobile app.
asciidoc
autohotkey
bash
coffeescript
cpp (C++)
cs (C#)
css
diff
fix
glsl
ini
json
md (markdown)
ml
prolog
ps
py
tex
xl
xml
yaml
And you get the idea! Now you're a Discord text markdown expert. Get out there and highlight your statements!
If you have any questions or want to get in contact with me, you can add matthewzring on Discord or join my discord server.
There's someone who made something very similar to that old highlight.js demo: https://github.com/cherryblossom000/discord-syntax-highlighting
I thought this might be useful to link to because it's directly from highlight.js docs and only includes the name of the languages and the aliases for those languages rather than extensive code samples, but Discord doesn't include every single language from highlight.js: https://highlightjs.readthedocs.io/en/latest/supported-languages.html