Skip to content

Instantly share code, notes, and snippets.

@webermn15
Created January 24, 2019 18:27
Show Gist options
  • Select an option

  • Save webermn15/47e3fb4ccadf8ac3cf66ee9011a507f5 to your computer and use it in GitHub Desktop.

Select an option

Save webermn15/47e3fb4ccadf8ac3cf66ee9011a507f5 to your computer and use it in GitHub Desktop.
Discord Markdown Guide

Discord Markdown

Spice and twist up your message using markdown, syntax highlighting, formats in Discord.

Styles

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~~

  • Escape Characters

Don't want to use markdown? You can slap a backslash (\) in front of your statement, and it'll escape the markdown formatting. Keep in mind, it doesn't work in messages with edits or underscores.

Code Blocks

You can make your own code blocks by wrapping your text in backticks (`)

one line code blocks

You can also use three backticks (```) to create multiline code blocks

multiline code blocks

Syntax Highlighting

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...

syntax highlighting

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. For a full list: https://highlightjs.org/static/demo/

asciidoc

asciidoc

autohotkey

autohotkey

bash

bash

coffeescript

coffeescript

cpp

cpp

cs

cs

css

css

diff

diff

fix

fix

glsl

glsl

html

html

ini

ini

json

json

md

md

ml

ml

prolog

prolog

py

py

tex

tex

xl

xl

xml

xml

And you get the idea! Now you're a Discord text markdown expert. Get out there and highlight your statements!

Credits

@hachikujimayoi11
Copy link

Cool! thanks for the help!

@MercuryZxDEV
Copy link

Hey, sadly its outdated - but it was awesome, I wish you could update that.
Thanks in Advance!

@NikolaGluh
Copy link

NikolaGluh commented May 12, 2025

there is also syntax highlighting for c
also the highlightjs.org link you posted doesn't work anymore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment