Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A guide to Markdown on Discord.

Markdown Text 101

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

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

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! Just keep in mind, it doesn't work in messages with edits or underscores.

Block Quotes

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.

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

multiline block quote

Code Blocks

Discord also supports code blocks as well. 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, like this beautifully written haiku.

multiline code blocks

Syntax Highlighting

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

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/. Note that you won't be able to view syntax highlighting on the mobile app.

asciidoc

asciidoc

autohotkey

autohotkey

bash

bash

coffeescript

coffeescript

cpp (C++)

cpp

cs (C#)

cs

css

css

diff

diff

fix

fix

glsl

glsl

ini

ini

json

json

md (markdown)

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!

Acknowledgements

Hammer and Chisel
Discord Highlight.js

A special thanks to Frosty#9449 for their help in making this guide.

If you have any questions or want to get in contact with me, you can add Matthew#2334 on Discord or join my support server.

@Ryonez

This comment has been minimized.

Copy link

@Ryonez Ryonez commented Oct 1, 2017

Thank you so much for this!

@TheRaven81

This comment has been minimized.

Copy link

@TheRaven81 TheRaven81 commented Oct 6, 2017

If you want to use the asterisks for emphasis and not go italic or bold, you can add a backslash before them like this:
\*An asterisk wrapped phrase\* = *An asterisk wrapped phrase*

Note from Matthew: I've added this. Thanks!

@Nesetalis

This comment has been minimized.

Copy link

@Nesetalis Nesetalis commented Oct 24, 2017

single _ gives italics as well as single *.

Note from Matthew: I've added this. Thank you!

@supposedly

This comment has been minimized.

Copy link

@supposedly supposedly commented Oct 29, 2017

Hmm, the tex highlighting seems to have changed -- can you confirm? This

```tex
Everything is highlighted```

produces

image

when I try it.

EDIT: thanks @troffaholic, it is indeed the $ :)

@ghost

This comment has been minimized.

Copy link

@ghost ghost commented Oct 30, 2017

Notice the '$'.

@Tris10w

This comment has been minimized.

Copy link

@Tris10w Tris10w commented Nov 6, 2017

Nicely done :)

@AlexCSilva

This comment has been minimized.

Copy link

@AlexCSilva AlexCSilva commented Nov 20, 2017

Great stuff :)

@chevtek

This comment has been minimized.

Copy link

@chevtek chevtek commented Nov 26, 2017

Does Discord not support the standard Markdown quote blocks using >?

Like this:

> I am in a quote block.

I am in a quote block.


If it does support them I can't figure it out. If it doesn't, why not?

@KillyMXI

This comment has been minimized.

Copy link

@KillyMXI KillyMXI commented Dec 6, 2017

I wonder why quoting is not available too. Only bots can emulate it to some extent. Humans usually replace it with code blocks.
Relevant suggestion: https://feedback.discordapp.com/forums/326712-discord-dream-land/suggestions/15536655-quoting

One more thing to add to this guide:
Links wrapped into angle brackets like this: <https://example.org> - will not show preview.

@ILGVARSBOSS

This comment has been minimized.

Copy link

@ILGVARSBOSS ILGVARSBOSS commented Dec 19, 2017

how do you do a link in code

@Alipoodle

This comment has been minimized.

Copy link

@Alipoodle Alipoodle commented Feb 21, 2018

Add
asciidoc

Orange  :: Plain

image

Note from Matthew: I've added this, thank you!

@ghost

This comment has been minimized.

Copy link

@ghost ghost commented Apr 9, 2018

thx bro

@ExoNarcis

This comment has been minimized.

Copy link

@ExoNarcis ExoNarcis commented Apr 10, 2018

Add
Lua
IMG

@ghost

This comment has been minimized.

Copy link

@ghost ghost commented Apr 11, 2018

Please add Tables, Bullet Points and Numbered Lists support
Thanks

@matthewzring

This comment has been minimized.

Copy link
Owner Author

@matthewzring matthewzring commented Apr 13, 2018

Unfortunately, Discord doesn't support hyperlinks, quotes, tables, bullet points, or lists.

@SHADOWELITE7

This comment has been minimized.

Copy link

@SHADOWELITE7 SHADOWELITE7 commented Apr 18, 2018

wow this is very helpfull

@SHADOWELITE7

This comment has been minimized.

Copy link

@SHADOWELITE7 SHADOWELITE7 commented Apr 18, 2018

hmm thought asciidoc would be colorful
https://prnt.sc/j6v75g

@2wild4u

This comment has been minimized.

Copy link

@2wild4u 2wild4u commented Apr 19, 2018

how can i make the full text red with the - symbol in my text please

@matthewzring

This comment has been minimized.

Copy link
Owner Author

@matthewzring matthewzring commented Apr 20, 2018

@2wild4u See diff. Lines starting with - are red.

@FridyGruder

This comment has been minimized.

Copy link

@FridyGruder FridyGruder commented Apr 21, 2018

add
java
image

@DanielGGordon

This comment has been minimized.

Copy link

@DanielGGordon DanielGGordon commented May 11, 2018

Why is there no support for quote blocks

Like this amazing quote here

Typed by Daniel Gordon, just now.

@ghost

This comment has been minimized.

Copy link

@ghost ghost commented May 12, 2018

Would be verry use full to use html for example

<font color="red">This is some text!</font>

This is some text! shut be red

@darkwerehog

This comment has been minimized.

Copy link

@darkwerehog darkwerehog commented May 16, 2018

alright i have a quick question I'm look all over the internet to find the syntax on how to get the color violet people say use ```markdown
[violet] like this but it keeps coming in grey can anyone fill me in on how to get the violet color and purple as well

@DVFlowey

This comment has been minimized.

Copy link

@DVFlowey DVFlowey commented Jun 14, 2018

add LUA.

@DVFlowey

This comment has been minimized.

Copy link

@DVFlowey DVFlowey commented Jun 14, 2018

image
^ i used a color changing tool, use that to make violet

@Elepahnt

This comment has been minimized.

Copy link

@Elepahnt Elepahnt commented Jun 27, 2018

@Elepahnt

This comment has been minimized.

Copy link

@Elepahnt Elepahnt commented Jun 27, 2018

how

@H336

This comment has been minimized.

Copy link

@H336 H336 commented Jul 2, 2018

image
Syntax: I will not say

@lexikiq

This comment has been minimized.

Copy link

@lexikiq lexikiq commented Jul 5, 2018

Purple/violet is not part of the code block color palette and is not possible in Discord without using client mods to change the colors.

@Noviian

This comment has been minimized.

Copy link

@Noviian Noviian commented Jul 5, 2018

in prolog, any text after % on the same line will be dark grey
fdsf

@flipthedog

This comment has been minimized.

Copy link

@flipthedog flipthedog commented Jul 10, 2018

I am sad links don't work in discord :'(. Or am I missing something?

@GlitchMasta47

This comment has been minimized.

Copy link

@GlitchMasta47 GlitchMasta47 commented Jul 21, 2018

Inline links aren't supported by users or even bots, only webhooks.
cc: @flipthedog

@matthewzring

This comment has been minimized.

Copy link
Owner Author

@matthewzring matthewzring commented Jul 23, 2018

@flipthedog @GlitchMasta47 Bots and webhooks can hyperlink things inside embeds.

@konatizer

This comment has been minimized.

Copy link

@konatizer konatizer commented Jul 26, 2018

i noticed that with python syntax highlighting, you have to write "python" and not "py" as it says here.

@linus-jansson

This comment has been minimized.

Copy link

@linus-jansson linus-jansson commented Jul 28, 2018

Thank you! This was more helpful than the real docs made by discord.

@GlitchMasta47

This comment has been minimized.

Copy link

@GlitchMasta47 GlitchMasta47 commented Jul 28, 2018

@ringmatthew I know about that too, but I was specifically talking about inline links.

@SeymourSchlong

This comment has been minimized.

Copy link

@SeymourSchlong SeymourSchlong commented Aug 7, 2018

If you leave a backslash before any of the characters used in markdown, you can keep your message with all of the markdown characters. This will work with underscores, asterisks, backticks, and tildes.

@paulvanvulpen

This comment has been minimized.

Copy link

@paulvanvulpen paulvanvulpen commented Aug 15, 2018

It seems clojure is also supported but missing from the list

@JanLorem

This comment has been minimized.

Copy link

@JanLorem JanLorem commented Aug 27, 2018

php is also supported

@max0120842

This comment has been minimized.

Copy link

@max0120842 max0120842 commented Sep 3, 2018

Hello!!! Can you help me? How to create this text-box with line on left side?
image

@Gravitygrey

This comment has been minimized.

Copy link

@Gravitygrey Gravitygrey commented Sep 21, 2018

yaml is supported also

yaml
yaml:
no-yaml

*works in discord

@Alpha-Knugen

This comment has been minimized.

Copy link

@Alpha-Knugen Alpha-Knugen commented Sep 23, 2018

I dont know if im stupid or not but i can get colors on numbers with "python" but i want to get colors on everything but i cant use like python and css to color the text. am i doing wrong?

@Alpha-Knugen

This comment has been minimized.

Copy link

@Alpha-Knugen Alpha-Knugen commented Sep 23, 2018

I dont know if im stupid or not but i can get colors on numbers with "python" but i want to get colors on everything but i cant use like python and css to color the text. am i doing wrong?

i managed to get the text as i want it with xml but is it possible to not have <this in the start and end of the texts?>

@speedking456

This comment has been minimized.

Copy link

@speedking456 speedking456 commented Sep 30, 2018

php, html, and mysql work too

I've tried all of these, reply with more and I'll add them if they work.
Full list
asciidoc
autohotkey
bash
coffeescript
cpp (C++)
cs (C#)
css
diff
fix
glsl
ini
json
md (markdown)
ml
prolog
py
tex
xl
xml
php
html

@Priultimus

This comment has been minimized.

Copy link

@Priultimus Priultimus commented Oct 5, 2018

I see no mention of javascript?

image

@aliasmask

This comment has been minimized.

Copy link

@aliasmask aliasmask commented Oct 6, 2018

What's the syntax for using a certain style in your code block. For example, I would like to use HTML with the Vs 2015 style.

@DanielGGordon

This comment has been minimized.

Copy link

@DanielGGordon DanielGGordon commented Oct 9, 2018

Is there really no way to make a list or a blockquote in Discord???

@Shrek5InTheatres2019

This comment has been minimized.

Copy link

@Shrek5InTheatres2019 Shrek5InTheatres2019 commented Oct 10, 2018

screen shot 2018-10-09 at 7 26 01 pm

brainf**k seems to work with either bf or brainfuck, unless it's just... discord styling it randomly
@LartyHD

This comment has been minimized.

Copy link

@LartyHD LartyHD commented Oct 17, 2018

php, html, and mysql work too

I've tried all of these, reply with more and I'll add them if they work.
Full list
asciidoc
autohotkey
bash
coffeescript
cpp (C++)
cs (C#)
css
diff
fix
glsl
ini
json
md (markdown)
ml
prolog
py
tex
xl
xml
php
html

What is with Kotlin?
unbenannt

@Kyrela

This comment has been minimized.

Copy link

@Kyrela Kyrela commented Oct 26, 2018

image
You forgot to mention that by linking between > and < (upside down), you prevent its preview!
image

@WhiteWolf-One

This comment has been minimized.

Copy link

@WhiteWolf-One WhiteWolf-One commented Oct 27, 2018

Direct embeds? Or only via webhook?

FYI: https://discord.club/tools/embed-generator

  • could be useful.
@almeidx

This comment has been minimized.

Copy link

@almeidx almeidx commented Nov 8, 2018

there's also a
yaml

@dcorvus

This comment has been minimized.

Copy link

@dcorvus dcorvus commented Nov 18, 2018

Don't forget you can also do ``This is text`` so you can escape other ` inside.

This is a test ` of this ` code block.

@Bluscream

This comment has been minimized.

Copy link

@Bluscream Bluscream commented Nov 26, 2018

List of languages: https://github.com/highlightjs/highlight.js/tree/master/src/languages

langs = ["1c","abnf","accesslog","actionscript","ada","angelscript","apache","applescript","arcade","arduino","armasm","asciidoc","aspectj","autohotkey","autoit","avrasm","awk","axapta","bash","basic","bnf","brainfuck","cal","capnproto","ceylon","clean","clojure","clojure-repl","cmake","coffeescript","coq","cos","cpp","crmsh","crystal","cs","csp","css","d","dart","delphi","diff","django","dns","dockerfile","dos","dsconfig","dts","dust","ebnf","elixir","elm","erb","erlang","erlang-repl","excel","fix","flix","fortran","fsharp","gams","gauss","gcode","gherkin","glsl","gml","go","golo","gradle","groovy","haml","handlebars","haskell","haxe","hsp","htmlbars","http","hy","inform7","ini","irpf90","isbl","java","javascript","jboss-cli","json","julia","julia-repl","kotlin","lasso","ldif","leaf","less","lisp","livecodeserver","livescript","llvm","lsl","lua","makefile","markdown","mathematica","matlab","maxima","mel","mercury","mipsasm","mizar","mojolicious","monkey","moonscript","n1ql","nginx","nimrod","nix","nsis","objectivec","ocaml","openscad","oxygene","parser3","perl","pf","pgsql","php","plaintext","pony","powershell","processing","profile","prolog","properties","protobuf","puppet","purebasic","python","q","qml","r","reasonml","rib","roboconf","routeros","rsl","ruby","ruleslanguage","rust","sas","scala","scheme","scilab","scss","shell","smali","smalltalk","sml","sqf","sql","stan","stata","step21","stylus","subunit","swift","taggerscript","tap","tcl","tex","thrift","tp","twig","typescript","vala","vbnet","vbscript","vbscript-html","verilog","vhdl","vim","x86asm","xl","xml","xquery","yaml","zephir"]
text = " ".join(arguments)
_text = ""
for lang in langs:
_text += "{0}:\n```{0}\n{1}\n```\n".format(lang, text)
await message.channel.send(_text)
@iLinkoDes

This comment has been minimized.

Copy link

@iLinkoDes iLinkoDes commented Dec 12, 2018

javascript or php isn't supported in the markdown?

@Jayed13

This comment has been minimized.

Copy link

@Jayed13 Jayed13 commented Dec 21, 2018

Umm...I really don't understand...can somebody tell me how I can write something in each color? I only need one method for each color...

@Jayed13

This comment has been minimized.

Copy link

@Jayed13 Jayed13 commented Dec 21, 2018

Like...how do I post colored texts with markdown? For each color?

@AleksandrPe

This comment has been minimized.

Copy link

@AleksandrPe AleksandrPe commented Sep 17, 2019

@ismael-miguel

This comment has been minimized.

Copy link

@ismael-miguel ismael-miguel commented Sep 18, 2019

which language to use for this? https://pastenow.ru/b3aaf4b9843904a1f9789666ce59c5a7

It's not a language, it's a bot thing.
I can't say exactly what it is, but a human can't produce that without being sent by a bot.

@almeidx

This comment has been minimized.

Copy link

@almeidx almeidx commented Sep 25, 2019

> your text here only allows you to have a one-line quote.
You can have multiple-line quotes by typing

>>> your
text
here
@akshay2498

This comment has been minimized.

Copy link

@akshay2498 akshay2498 commented Nov 6, 2019

Can anyone fix the infinite jumping in this code?

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PlayerController2D : MonoBehaviour
{
Animator animator;
Rigidbody2D rb2d;
SpriteRenderer spriteRenderer;

bool isGrounded;

[SerializeField]
Transform GroundCheck;

[SerializeField]
Transform GroundCheckL;

[SerializeField]
Transform GroundCheckR;

[SerializeField]
private float runspeed = 1.5f;

[SerializeField] 
private float jumpspeed = 4f;

// Start is called before the first frame update
void Start()
{
    animator = GetComponent<Animator>();
    rb2d = GetComponent<Rigidbody2D>();
    spriteRenderer = GetComponent<SpriteRenderer>();
}

// Update is called once per frame
private void FixedUpdate()
{
    if(Physics2D.Linecast(transform.position, GroundCheck.position, 1 << LayerMask.NameToLayer("Ground")))
    {
        isGrounded = true;
    }
    else
    {
        isGrounded = false;
    }

    if(Input.GetKey("d")  Input.GetKey("right"))
    {
        rb2d.velocity = new Vector2(runspeed, rb2d.velocity.y);

            animator.Play("Player_run");
        spriteRenderer.flipX = false;
    }

    else if(Input.GetKey("a")  Input.GetKey("left"))
    {
        rb2d.velocity = new Vector2(-runspeed, rb2d.velocity.y);

            animator.Play("Player_run");
        spriteRenderer.flipX = true;
    }

    else
    {
            animator.Play("Player_idle");
        rb2d.velocity = new Vector2(0, rb2d.velocity.y);
    }
        if (Input.GetKey("space") && isGrounded)
        {

            rb2d.velocity = new Vector2(rb2d.velocity.x, jumpspeed);
            animator.Play("Player_jump");
        }
}

}

@almeidx

This comment has been minimized.

Copy link

@almeidx almeidx commented Mar 1, 2020

You can use spoilers using 2 pipes (||) before and after the spoiler: ||that person dies at the end||

@almeidx

This comment has been minimized.

Copy link

@almeidx almeidx commented Mar 1, 2020

brainfuck is also a supported language for code blocks.

++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.
@almeidx

This comment has been minimized.

Copy link

@almeidx almeidx commented Mar 1, 2020

@akshay2498 I believe you're on the wrong place.

@almeidx

This comment has been minimized.

Copy link

@almeidx almeidx commented Mar 1, 2020

which language to use for this? https://pastenow.ru/b3aaf4b9843904a1f9789666ce59c5a7

It's not a language, it's a bot thing.
I can't say exactly what it is, but a human can't produce that without being sent by a bot.

They're called embeds.

@almeidx

This comment has been minimized.

Copy link

@almeidx almeidx commented Mar 17, 2020

Add keyboard shortcuts? Ctrl + B for bold, CTRL + I for italic, etc.

@matthewzring

This comment has been minimized.

Copy link
Owner Author

@matthewzring matthewzring commented Mar 29, 2020

@Almeeida Can you get in contact with me on discord?

@almeidx

This comment has been minimized.

Copy link

@almeidx almeidx commented Mar 30, 2020

@Almeeida Can you get in contact with me on discord?

I've sent a friend request

@Decrosion

This comment has been minimized.

Copy link

@Decrosion Decrosion commented May 20, 2020

Anyone know if there's a way for discord to respect tab indentation in code block?
GDScript is like python where correct indentation is required to compile (don't need so many brackets and stuff).
Currently having to PasteBin stuff just to share it...

@Llassi-Wolfsong

This comment has been minimized.

Copy link

@Llassi-Wolfsong Llassi-Wolfsong commented Jun 20, 2020

Hi Thanks for a great list. Ive one question however, it may of been answered I've not read everyone's comments yet but how do you type bold for either one word if you are typing in colour for example

-I want to type this in red but have HELLO in bold

the normal way to type bold would be HELLO but that doesnt seem to work if I do it within the phrase like this

-I want to type this in red but have **HELLO** in bold

Also how would I make the Whole Phrase in bold. Again Ive tried putting the ** before and after the colour command like

**```diff
-I want to type this in red but have HELLO in bold


```diff**
-I want to type this in red and it all bold**
-**I want to type this in redand it all bold**

but none of them seem to work
Sorry I'm not sure how to type the above so you can see what I've type*

Thanks for your time

@ati0ns

This comment has been minimized.

Copy link

@ati0ns ati0ns commented Aug 31, 2020

Hi Thanks for a great list. Ive one question however, it may of been answered I've not read everyone's comments yet but how do you type bold for either one word if you are typing in colour for example

-I want to type this in red but have HELLO in bold

the normal way to type bold would be HELLO but that doesnt seem to work if I do it within the phrase like this

-I want to type this in red but have **HELLO** in bold

Also how would I make the Whole Phrase in bold. Again Ive tried putting the ** before and after the colour command like

**```diff
-I want to type this in red but have HELLO in bold


```diff**
-I want to type this in red and it all bold**
-**I want to type this in redand it all bold**

but none of them seem to work
Sorry I'm not sure how to type the above so you can see what I've type*

Thanks for your time

Not possible.

@thetayloredman

This comment has been minimized.

Copy link

@thetayloredman thetayloredman commented Sep 23, 2020

Hi Thanks for a great list. Ive one question however, it may of been answered I've not read everyone's comments yet but how do you type bold for either one word if you are typing in colour for example

-I want to type this in red but have HELLO in bold

the normal way to type bold would be HELLO but that doesnt seem to work if I do it within the phrase like this

-I want to type this in red but have **HELLO** in bold

Also how would I make the Whole Phrase in bold. Again Ive tried putting the ** before and after the colour command like

**```diff
-I want to type this in red but have HELLO in bold


```diff**
-I want to type this in red and it all bold**
-**I want to type this in redand it all bold**

but none of them seem to work
Sorry I'm not sure how to type the above so you can see what I've type*

Thanks for your time

Not possible because it's a code block.

Note that to show what you typed, use \ before every markdown character to escape any of the markdown syntax
```
like this
```

hit View Raw to see what I typed

@F8ER

This comment has been minimized.

Copy link

@F8ER F8ER commented Oct 8, 2020

Hey all o/

May I ask someone, why would the Discord highlight algorithm remove color from next number of list if underscore exist?
Is it correct behavior and if so, is there any workaround?

Regards

@magicky557

This comment has been minimized.

Copy link

@magicky557 magicky557 commented Oct 13, 2020

Hello!!! Can you help me? How to create this text-box with line on left side?
image

Thats just what a message looks like when you're tagged in it. if you do @everyone somewhere in the message you'll see it like that. that one has a bunch of what looks to be roles tagged so likely you're one of those roles and got tagged

@lavgup

This comment has been minimized.

Copy link

@lavgup lavgup commented Oct 17, 2020

Here's an alphabetically sorted array of all of the supported languages (as of 28/10/2020), in case anyone wants it for their bot or other use cases.

[
    'as', 'actionscript', 'applescript', 'arduino', 'arm', 'html', 'xml', 
    'asciidoc', 'autohotkey', 'autoit', 'bash', 'brainfuck', 'c', 'csharp', 
    'clojure', 'cmake', 'coffeescript', 'coffee', 'crystal', 'cs', 'css', 
    'd', 'md', 'markdown', 'dart', 'diff', 'django', 'dockerfile', 'dsconfig', 
    'elixir', 'elm', 'ruby', 'erlang', 'erlang-repl', 'fortran', 'fs', 'fsharp', 
    'go', 'gradle', 'groovy', 'haml', 'handlebars', 'haskell', 'haxe', 'html', 
    'htmlbars', 'http', 'java', 'js', 'javascript', 'json', 'julia', 'julia-repl', 
    'kotlin', 'lisp', 'livescript', 'lua', 'makefile', 'mathematica', 'matlab', 
    'perl', 'moonscript', 'nix', 'ocaml', 'php', 'php-template', 'powershell', 
    'processing', 'profile', 'prolog', 'puppet', 'python', 'py', 'python-repl', 
    'r', 'reasonml', 'rust', 'sas', 'scala', 'scheme', 'scss', 'sml', 'stylus', 
    'swift', 'yaml', 'tcl', 'twig', 'ts', 'typescript', 'vala', 'verilog', 'vim'
]
@Awesomecat713

This comment has been minimized.

Copy link

@Awesomecat713 Awesomecat713 commented Oct 17, 2020

you can do quote blocks, many people just forget to put the space after the '>' .

@JamesTheAwesomeDude

This comment has been minimized.

Copy link

@JamesTheAwesomeDude JamesTheAwesomeDude commented Oct 24, 2020

What's the syntax for using a certain style in your code block. For example, I would like to use HTML with the Vs 2015 style.

@aliasmask You cannot set this style. The style is essentially part of the client's theme.

@nomsolence

This comment has been minimized.

Copy link

@nomsolence nomsolence commented Oct 30, 2020

Happy Hallowe'en~
1337

@u9000-Nine

This comment has been minimized.

Copy link

@u9000-Nine u9000-Nine commented Nov 11, 2020

It may be helpful to add a note next to the syntax highlighting demo link, saying the color scheme Discord uses or matches most closely is the 'Solorized Dark' so people can immediately enable that scheme to see what it would look like in Discord.

@J-Erwin

This comment has been minimized.

Copy link

@J-Erwin J-Erwin commented Nov 13, 2020

Do you know if there is anything for .asm code blocks? thanks

@F8ER

This comment has been minimized.

Copy link

@F8ER F8ER commented Nov 13, 2020

Do you know if there is anything for .asm code blocks? thanks

Consider checking out x86asm

@deG3nt3lm4n

This comment has been minimized.

Copy link

@deG3nt3lm4n deG3nt3lm4n commented Dec 9, 2020

wait so you can use markdown or by adding the three ticks ``` and then saying markdown after it?

@F8ER

This comment has been minimized.

Copy link

@F8ER F8ER commented Dec 9, 2020

wait so you can use markdown or by adding the three ticks ``` and then saying markdown after it?

Sorry, but would you mind rephrasing the question?

@kelco-chan

This comment has been minimized.

Copy link

@kelco-chan kelco-chan commented Dec 20, 2020

Hello!!! Can you help me? How to create this text-box with line on left side?
image

You cannot. Only bots can do that.

@almeidx

This comment has been minimized.

Copy link

@almeidx almeidx commented Dec 20, 2020

Hello!!! Can you help me? How to create this text-box with line on left side?
image

You cannot. Only bots can do that.

Wrong, that's just a message highlighted because they were mentioned on it

@F8ER

This comment has been minimized.

Copy link

@F8ER F8ER commented Dec 20, 2020

Wrong, that's just a message highlighted because they were mentioned on it

Consider checking out yellow line on the left

@JamesTheAwesomeDude

This comment has been minimized.

Copy link

@JamesTheAwesomeDude JamesTheAwesomeDude commented Dec 20, 2020

@F8ER That yellow on the left is caused by a mention.

If you mention a user or a group they're in, then that user will see that yellow line on the left.

This has nothing to to with markdown.

@F8ER

This comment has been minimized.

Copy link

@F8ER F8ER commented Dec 20, 2020

@F8ER That yellow on the left is caused by a mention.

If you mention a user or a group they're in, then that user will see that yellow line on the left.

This has nothing to to with markdown.

Please, consider checking out below(above is an embed, below is a mention):

tAlZcqj 1

@almeidx

This comment has been minimized.

Copy link

@almeidx almeidx commented Dec 21, 2020

@F8ER That yellow on the left is caused by a mention.
If you mention a user or a group they're in, then that user will see that yellow line on the left.
This has nothing to to with markdown.

Please, consider checking out below(above is an embed, below is a mention):

tAlZcqj 1

Embed backgrounds don't change color

@F8ER

This comment has been minimized.

Copy link

@F8ER F8ER commented Dec 21, 2020

Embed backgrounds don't change color

Won't they have changed background with a mention like @username?

@almeidx

This comment has been minimized.

Copy link

@almeidx almeidx commented Dec 21, 2020

Embed backgrounds don't change color

Won't they have changed background with a mention like @username?

No. Mentions inside embeds don't actually "ping" the person

@F8ER

This comment has been minimized.

Copy link

@F8ER F8ER commented Dec 21, 2020

No. Mentions inside embeds don't actually "ping" the person

What about role mentioning?

@almeidx

This comment has been minimized.

Copy link

@almeidx almeidx commented Dec 21, 2020

No. Mentions inside embeds don't actually "ping" the person

What about role mentioning?

Still doesn't "ping" anybody (looks the same as in the user mention screenshot)

@F8ER

This comment has been minimized.

Copy link

@F8ER F8ER commented Dec 21, 2020

So what's it then? It's an embed, as it seems(it has padding from the left), but its background is yellow colored.
@magicky557 In conclusion, it should be possible to clarify what it is having an example of the message(i.e. its link), at least, in order to observe its source.

@thetayloredman

This comment has been minimized.

Copy link

@thetayloredman thetayloredman commented Dec 21, 2020

So what's it then? It's an embed, as it seems(it has padding from the left), but its background is yellow colored.
@magicky557 In conclusion, it should be possible to clarify what it is having an example of the message(i.e. its link), at least, in order to observe its source.

The padding occurs based on screen size. It is not an embed.

@F8ER

This comment has been minimized.

Copy link

@F8ER F8ER commented Dec 21, 2020

The padding occurs based on screen size. It is not an embed.

I've tried testing that, but it didn't work. May I ask for an example showing that, please?

@thetayloredman

This comment has been minimized.

Copy link

@thetayloredman thetayloredman commented Dec 24, 2020

The padding occurs based on screen size. It is not an embed.

I've tried testing that, but it didn't work. May I ask for an example showing that, please?

Actually, it looks like this is an older image... The behavior it's showing used to happen at least...

@sudo-haley

This comment has been minimized.

Copy link

@sudo-haley sudo-haley commented Jan 12, 2021

I managed to scrape a list of all the supported languages and aliases from the webpack code
1c,abnf,accesslog,actionscript/as,ada,angelscript/asc,apache/apacheconf,applescript/osascript,arcade,c-like/c/cc/h/c++/h++/hpp/hh/hxx/cxx,cpp,arduino,armasm/arm,xml/html/xhtml/rss/atom/xjb/xsd/xsl/plist/wsf/svg,asciidoc/adoc,aspectj,autohotkey/ahk,autoit,avrasm,awk,axapta,bash/sh/zsh,basic,bnf,brainfuck/bf,c,cal,capnproto/capnp,ceylon,clean/icl/dcl,clojure/clj,clojure-repl,cmake/cmake.in,coffeescript/coffee/cson/iced,coq,cos/cls,crmsh/crm/pcmk,crystal/cr,csharp/cs/c#,csp,css,d,markdown/md/mkdown/mkd,dart,delphi/dpr/dfm/pas/pascal/freepascal/lazarus/lpr/lfm,diff/patch,django/jinja,dns/bind/zone,dockerfile/docker,dos/bat/cmd,dsconfig,dts,dust/dst,ebnf,elixir,elm,ruby/rb/gemspec/podspec/thor/irb,erb,erlang-repl,erlang/erl,excel/xlsx/xls,fix,flix,fortran/f90/f95,fsharp/fs,gams/gms,gauss/gss,gcode/nc,gherkin/feature,glsl,gml,go/golang,golo,gradle,groovy,haml,handlebars/hbs/html.hbs/html.handlebars/htmlbars,haskell/hs,haxe/hx,hsp,htmlbars/hbs/html.hbs/html.handlebars,http/https,hy/hylang,inform7/i7,ini/toml,irpf90,isbl,java/jsp,javascript/js/jsx/mjs/cjs,jboss-cli/wildfly-cli,json,julia,julia-repl/jldoctest,kotlin/kt,lasso/ls/lassoscript,latex/tex,ldif,leaf,less,lisp,livecodeserver,livescript/ls,llvm,lsl,lua,makefile/mk/mak,mathematica/mma/wl,matlab,maxima,mel,mercury/m/moo,mipsasm/mips,mizar,perl/pl/pm,mojolicious,monkey,moonscript/moon,n1ql,nginx/nginxconf,nim,nix/nixos,nsis,objectivec/mm/objc/obj-c,ocaml/ml,openscad/scad,oxygene,parser3,pf/pf.conf,pgsql/postgres/postgresql,php/php3/php4/php5/php6/php7,php-template,plaintext/text/txt,pony,powershell/ps/ps1,processing,profile,prolog,properties,protobuf,puppet/pp,purebasic/pb/pbi,python/py/gyp/ipython,python-repl/pycon,q/k/kdb,qml/qt,r,reasonml/re,rib,roboconf/graph/instances,routeros/mikrotik,rsl,ruleslanguage,rust/rs,sas,scala,scheme,scilab/sci,scss,shell/console,smali,smalltalk/st,sml/ml,sqf,sql,stan/stanfuncs,stata/do/ado,step21/p21/step/stp,stylus/styl,subunit,swift,taggerscript,yaml/yml,tap,tcl/tk,thrift,tp,twig/craftcms,typescript/ts,vala,vbnet/vb,vbscript/vbs,vbscript-html,verilog/v/sv/svh,vhdl,vim,x86asm,xl/tao,xquery/xpath/xq,zephir/zep

@thetayloredman

This comment has been minimized.

Copy link

@thetayloredman thetayloredman commented Jan 12, 2021

@almeidx

This comment has been minimized.

Copy link

@almeidx almeidx commented Jan 12, 2021

I managed to scrape a list of all the supported languages and aliases from the webpack code
1c,abnf,accesslog,actionscript/as,ada,angelscript/asc,apache/apacheconf,applescript/osascript,arcade,c-like/c/cc/h/c++/h++/hpp/hh/hxx/cxx,cpp,arduino,armasm/arm,xml/html/xhtml/rss/atom/xjb/xsd/xsl/plist/wsf/svg,asciidoc/adoc,aspectj,autohotkey/ahk,autoit,avrasm,awk,axapta,bash/sh/zsh,basic,bnf,brainfuck/bf,c,cal,capnproto/capnp,ceylon,clean/icl/dcl,clojure/clj,clojure-repl,cmake/cmake.in,coffeescript/coffee/cson/iced,coq,cos/cls,crmsh/crm/pcmk,crystal/cr,csharp/cs/c#,csp,css,d,markdown/md/mkdown/mkd,dart,delphi/dpr/dfm/pas/pascal/freepascal/lazarus/lpr/lfm,diff/patch,django/jinja,dns/bind/zone,dockerfile/docker,dos/bat/cmd,dsconfig,dts,dust/dst,ebnf,elixir,elm,ruby/rb/gemspec/podspec/thor/irb,erb,erlang-repl,erlang/erl,excel/xlsx/xls,fix,flix,fortran/f90/f95,fsharp/fs,gams/gms,gauss/gss,gcode/nc,gherkin/feature,glsl,gml,go/golang,golo,gradle,groovy,haml,handlebars/hbs/html.hbs/html.handlebars/htmlbars,haskell/hs,haxe/hx,hsp,htmlbars/hbs/html.hbs/html.handlebars,http/https,hy/hylang,inform7/i7,ini/toml,irpf90,isbl,java/jsp,javascript/js/jsx/mjs/cjs,jboss-cli/wildfly-cli,json,julia,julia-repl/jldoctest,kotlin/kt,lasso/ls/lassoscript,latex/tex,ldif,leaf,less,lisp,livecodeserver,livescript/ls,llvm,lsl,lua,makefile/mk/mak,mathematica/mma/wl,matlab,maxima,mel,mercury/m/moo,mipsasm/mips,mizar,perl/pl/pm,mojolicious,monkey,moonscript/moon,n1ql,nginx/nginxconf,nim,nix/nixos,nsis,objectivec/mm/objc/obj-c,ocaml/ml,openscad/scad,oxygene,parser3,pf/pf.conf,pgsql/postgres/postgresql,php/php3/php4/php5/php6/php7,php-template,plaintext/text/txt,pony,powershell/ps/ps1,processing,profile,prolog,properties,protobuf,puppet/pp,purebasic/pb/pbi,python/py/gyp/ipython,python-repl/pycon,q/k/kdb,qml/qt,r,reasonml/re,rib,roboconf/graph/instances,routeros/mikrotik,rsl,ruleslanguage,rust/rs,sas,scala,scheme,scilab/sci,scss,shell/console,smali,smalltalk/st,sml/ml,sqf,sql,stan/stanfuncs,stata/do/ado,step21/p21/step/stp,stylus/styl,subunit,swift,taggerscript,yaml/yml,tap,tcl/tk,thrift,tp,twig/craftcms,typescript/ts,vala,vbnet/vb,vbscript/vbs,vbscript-html,verilog/v/sv/svh,vhdl,vim,x86asm,xl/tao,xquery/xpath/xq,zephir/zep

https://github.com/highlightjs/highlight.js/blob/master/SUPPORTED_LANGUAGES.md 😐

@F8ER

This comment has been minimized.

Copy link

@F8ER F8ER commented Jan 12, 2021

https://github.com/highlightjs/highlight.js/blob/master/SUPPORTED_LANGUAGES.md 😐

So, does the Discord use highlight.js behind the scenes?

@almeidx

This comment has been minimized.

Copy link

@almeidx almeidx commented Jan 12, 2021

https://github.com/highlightjs/highlight.js/blob/master/SUPPORTED_LANGUAGES.md 😐

So, does the Discord use highlight.js behind the scenes?

Yes. As mentioned on #acknowledgements (It's listed in https://discord.com/acknowledgements as well)

And also, this person already sent the list here

@F8ER

This comment has been minimized.

Copy link

@F8ER F8ER commented Jan 13, 2021

Yes. As mentioned on [#acknowledgements]

I see. Thank you. Couldn't find in DevTools on my end, though. How to locate it, if may I ask?

@almeidx

This comment has been minimized.

Copy link

@almeidx almeidx commented Jan 13, 2021

Yes. As mentioned on [#acknowledgements]

I see. Thank you. Couldn't find in DevTools on my end, though. How to locate it, if may I ask?

And found this on line 99661
(I used this file provided by DJScias)

That is probably the highlight.js function. I don't really want to go looking around too much in their build file with over 160,000 lines 😅

@F8ER

This comment has been minimized.

Copy link

@F8ER F8ER commented Jan 13, 2021

That is probably the highlight.js function.

Found it in local client (Discord Canary 74440 (9cf3621)).
Although, breakpoints didn't work in Main thread(probably a separate worker) while testing with sending a message of:

```md
* test
```

Although, the hljs on yours 99663 line and my 121185 probably indicates the highlight.js.

@KippingMonkey

This comment has been minimized.

Copy link

@KippingMonkey KippingMonkey commented Feb 3, 2021

var test
@thetayloredman

This comment has been minimized.

Copy link

@thetayloredman thetayloredman commented Feb 3, 2021

var test

that's not valid C# iirc

@F8ER

This comment has been minimized.

Copy link

@F8ER F8ER commented Feb 3, 2021

var test

that's not valid C# iirc

Why not? It only requires a non-imlicit value/initialization, though.

Related: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/var

@sudo-haley

This comment has been minimized.

Copy link

@sudo-haley sudo-haley commented Feb 6, 2021

I managed to scrape a list of all the supported languages and aliases from the webpack code
1c,abnf,accesslog,actionscript/as,ada,angelscript/asc,apache/apacheconf,applescript/osascript,arcade,c-like/c/cc/h/c++/h++/hpp/hh/hxx/cxx,cpp,arduino,armasm/arm,xml/html/xhtml/rss/atom/xjb/xsd/xsl/plist/wsf/svg,asciidoc/adoc,aspectj,autohotkey/ahk,autoit,avrasm,awk,axapta,bash/sh/zsh,basic,bnf,brainfuck/bf,c,cal,capnproto/capnp,ceylon,clean/icl/dcl,clojure/clj,clojure-repl,cmake/cmake.in,coffeescript/coffee/cson/iced,coq,cos/cls,crmsh/crm/pcmk,crystal/cr,csharp/cs/c#,csp,css,d,markdown/md/mkdown/mkd,dart,delphi/dpr/dfm/pas/pascal/freepascal/lazarus/lpr/lfm,diff/patch,django/jinja,dns/bind/zone,dockerfile/docker,dos/bat/cmd,dsconfig,dts,dust/dst,ebnf,elixir,elm,ruby/rb/gemspec/podspec/thor/irb,erb,erlang-repl,erlang/erl,excel/xlsx/xls,fix,flix,fortran/f90/f95,fsharp/fs,gams/gms,gauss/gss,gcode/nc,gherkin/feature,glsl,gml,go/golang,golo,gradle,groovy,haml,handlebars/hbs/html.hbs/html.handlebars/htmlbars,haskell/hs,haxe/hx,hsp,htmlbars/hbs/html.hbs/html.handlebars,http/https,hy/hylang,inform7/i7,ini/toml,irpf90,isbl,java/jsp,javascript/js/jsx/mjs/cjs,jboss-cli/wildfly-cli,json,julia,julia-repl/jldoctest,kotlin/kt,lasso/ls/lassoscript,latex/tex,ldif,leaf,less,lisp,livecodeserver,livescript/ls,llvm,lsl,lua,makefile/mk/mak,mathematica/mma/wl,matlab,maxima,mel,mercury/m/moo,mipsasm/mips,mizar,perl/pl/pm,mojolicious,monkey,moonscript/moon,n1ql,nginx/nginxconf,nim,nix/nixos,nsis,objectivec/mm/objc/obj-c,ocaml/ml,openscad/scad,oxygene,parser3,pf/pf.conf,pgsql/postgres/postgresql,php/php3/php4/php5/php6/php7,php-template,plaintext/text/txt,pony,powershell/ps/ps1,processing,profile,prolog,properties,protobuf,puppet/pp,purebasic/pb/pbi,python/py/gyp/ipython,python-repl/pycon,q/k/kdb,qml/qt,r,reasonml/re,rib,roboconf/graph/instances,routeros/mikrotik,rsl,ruleslanguage,rust/rs,sas,scala,scheme,scilab/sci,scss,shell/console,smali,smalltalk/st,sml/ml,sqf,sql,stan/stanfuncs,stata/do/ado,step21/p21/step/stp,stylus/styl,subunit,swift,taggerscript,yaml/yml,tap,tcl/tk,thrift,tp,twig/craftcms,typescript/ts,vala,vbnet/vb,vbscript/vbs,vbscript-html,verilog/v/sv/svh,vhdl,vim,x86asm,xl/tao,xquery/xpath/xq,zephir/zep

https://github.com/highlightjs/highlight.js/blob/master/SUPPORTED_LANGUAGES.md 😐

@almeidx c-like isn't listed but still works. There might be others too.

@almeidx

This comment has been minimized.

Copy link

@almeidx almeidx commented Feb 6, 2021

I managed to scrape a list of all the supported languages and aliases from the webpack code
1c,abnf,accesslog,actionscript/as,ada,angelscript/asc,apache/apacheconf,applescript/osascript,arcade,c-like/c/cc/h/c++/h++/hpp/hh/hxx/cxx,cpp,arduino,armasm/arm,xml/html/xhtml/rss/atom/xjb/xsd/xsl/plist/wsf/svg,asciidoc/adoc,aspectj,autohotkey/ahk,autoit,avrasm,awk,axapta,bash/sh/zsh,basic,bnf,brainfuck/bf,c,cal,capnproto/capnp,ceylon,clean/icl/dcl,clojure/clj,clojure-repl,cmake/cmake.in,coffeescript/coffee/cson/iced,coq,cos/cls,crmsh/crm/pcmk,crystal/cr,csharp/cs/c#,csp,css,d,markdown/md/mkdown/mkd,dart,delphi/dpr/dfm/pas/pascal/freepascal/lazarus/lpr/lfm,diff/patch,django/jinja,dns/bind/zone,dockerfile/docker,dos/bat/cmd,dsconfig,dts,dust/dst,ebnf,elixir,elm,ruby/rb/gemspec/podspec/thor/irb,erb,erlang-repl,erlang/erl,excel/xlsx/xls,fix,flix,fortran/f90/f95,fsharp/fs,gams/gms,gauss/gss,gcode/nc,gherkin/feature,glsl,gml,go/golang,golo,gradle,groovy,haml,handlebars/hbs/html.hbs/html.handlebars/htmlbars,haskell/hs,haxe/hx,hsp,htmlbars/hbs/html.hbs/html.handlebars,http/https,hy/hylang,inform7/i7,ini/toml,irpf90,isbl,java/jsp,javascript/js/jsx/mjs/cjs,jboss-cli/wildfly-cli,json,julia,julia-repl/jldoctest,kotlin/kt,lasso/ls/lassoscript,latex/tex,ldif,leaf,less,lisp,livecodeserver,livescript/ls,llvm,lsl,lua,makefile/mk/mak,mathematica/mma/wl,matlab,maxima,mel,mercury/m/moo,mipsasm/mips,mizar,perl/pl/pm,mojolicious,monkey,moonscript/moon,n1ql,nginx/nginxconf,nim,nix/nixos,nsis,objectivec/mm/objc/obj-c,ocaml/ml,openscad/scad,oxygene,parser3,pf/pf.conf,pgsql/postgres/postgresql,php/php3/php4/php5/php6/php7,php-template,plaintext/text/txt,pony,powershell/ps/ps1,processing,profile,prolog,properties,protobuf,puppet/pp,purebasic/pb/pbi,python/py/gyp/ipython,python-repl/pycon,q/k/kdb,qml/qt,r,reasonml/re,rib,roboconf/graph/instances,routeros/mikrotik,rsl,ruleslanguage,rust/rs,sas,scala,scheme,scilab/sci,scss,shell/console,smali,smalltalk/st,sml/ml,sqf,sql,stan/stanfuncs,stata/do/ado,step21/p21/step/stp,stylus/styl,subunit,swift,taggerscript,yaml/yml,tap,tcl/tk,thrift,tp,twig/craftcms,typescript/ts,vala,vbnet/vb,vbscript/vbs,vbscript-html,verilog/v/sv/svh,vhdl,vim,x86asm,xl/tao,xquery/xpath/xq,zephir/zep

https://github.com/highlightjs/highlight.js/blob/master/SUPPORTED_LANGUAGES.md 😐

@almeidx c-like isn't listed but still works. There might be others too.

did you even check the link that person I mentioned sent? (https://github.com/highlightjs/highlight.js/tree/master/src/languages)

@Be1zebub

This comment has been minimized.

Copy link

@Be1zebub Be1zebub commented Feb 12, 2021

I managed to scrape a list of all the supported languages and aliases from the webpack code
1c,abnf,accesslog,actionscript/as,ada,angelscript/asc,apache/apacheconf,applescript/osascript,arcade,c-like/c/cc/h/c++/h++/hpp/hh/hxx/cxx,cpp,arduino,armasm/arm,xml/html/xhtml/rss/atom/xjb/xsd/xsl/plist/wsf/svg,asciidoc/adoc,aspectj,autohotkey/ahk,autoit,avrasm,awk,axapta,bash/sh/zsh,basic,bnf,brainfuck/bf,c,cal,capnproto/capnp,ceylon,clean/icl/dcl,clojure/clj,clojure-repl,cmake/cmake.in,coffeescript/coffee/cson/iced,coq,cos/cls,crmsh/crm/pcmk,crystal/cr,csharp/cs/c#,csp,css,d,markdown/md/mkdown/mkd,dart,delphi/dpr/dfm/pas/pascal/freepascal/lazarus/lpr/lfm,diff/patch,django/jinja,dns/bind/zone,dockerfile/docker,dos/bat/cmd,dsconfig,dts,dust/dst,ebnf,elixir,elm,ruby/rb/gemspec/podspec/thor/irb,erb,erlang-repl,erlang/erl,excel/xlsx/xls,fix,flix,fortran/f90/f95,fsharp/fs,gams/gms,gauss/gss,gcode/nc,gherkin/feature,glsl,gml,go/golang,golo,gradle,groovy,haml,handlebars/hbs/html.hbs/html.handlebars/htmlbars,haskell/hs,haxe/hx,hsp,htmlbars/hbs/html.hbs/html.handlebars,http/https,hy/hylang,inform7/i7,ini/toml,irpf90,isbl,java/jsp,javascript/js/jsx/mjs/cjs,jboss-cli/wildfly-cli,json,julia,julia-repl/jldoctest,kotlin/kt,lasso/ls/lassoscript,latex/tex,ldif,leaf,less,lisp,livecodeserver,livescript/ls,llvm,lsl,lua,makefile/mk/mak,mathematica/mma/wl,matlab,maxima,mel,mercury/m/moo,mipsasm/mips,mizar,perl/pl/pm,mojolicious,monkey,moonscript/moon,n1ql,nginx/nginxconf,nim,nix/nixos,nsis,objectivec/mm/objc/obj-c,ocaml/ml,openscad/scad,oxygene,parser3,pf/pf.conf,pgsql/postgres/postgresql,php/php3/php4/php5/php6/php7,php-template,plaintext/text/txt,pony,powershell/ps/ps1,processing,profile,prolog,properties,protobuf,puppet/pp,purebasic/pb/pbi,python/py/gyp/ipython,python-repl/pycon,q/k/kdb,qml/qt,r,reasonml/re,rib,roboconf/graph/instances,routeros/mikrotik,rsl,ruleslanguage,rust/rs,sas,scala,scheme,scilab/sci,scss,shell/console,smali,smalltalk/st,sml/ml,sqf,sql,stan/stanfuncs,stata/do/ado,step21/p21/step/stp,stylus/styl,subunit,swift,taggerscript,yaml/yml,tap,tcl/tk,thrift,tp,twig/craftcms,typescript/ts,vala,vbnet/vb,vbscript/vbs,vbscript-html,verilog/v/sv/svh,vhdl,vim,x86asm,xl/tao,xquery/xpath/xq,zephir/zep

thx you <3
Also i made a sorted version:

["1c", "abnf", "accesslog", "actionscript", "ada", "ado", "adoc", "ahk", "angelscript", "apache", "apacheconf", "applescript", "arcade", "arduino", "arm", "armasm", "as", "asc", "asciidoc", "aspectj", "atom", "autohotkey", "autoit", "avrasm", "awk", "axapta", "bash", "basic", "bat", "bf", "bind", "bnf", "brainfuck", "c", "c", "c#", "c++", "c-like", "cal", "capnp", "capnproto", "cc", "ceylon", "cjs", "clean", "clj", "clojure", "clojure-repl", "cls", "cmake", "cmake.in", "cmd", "coffee", "coffeescript", "console", "coq", "cos", "cpp", "cr", "craftcms", "crm", "crmsh", "crystal", "cs", "csharp", "cson", "csp", "css", "cxx", "d", "dart", "dcl", "delphi", "dfm", "diff", "django", "dns", "do", "docker", "dockerfile", "dos", "dpr", "dsconfig", "dst", "dts", "dust", "ebnf", "elixir", "elm", "erb", "erl", "erlang", "erlang-repl", "excel", "f90", "f95", "feature", "fix", "flix", "fortran", "freepascal", "fs", "fsharp", "gams", "gauss", "gcode", "gemspec", "gherkin", "glsl", "gml", "gms", "go", "golang", "golo", "gradle", "graph", "groovy", "gss", "gyp", "h", "h++", "haml", "handlebars", "haskell", "haxe", "hbs", "hbs", "hh", "hpp", "hs", "hsp", "html", "html.handlebars", "html.handlebars", "html.hbs", "html.hbs", "htmlbars", "htmlbars", "http", "https", "hx", "hxx", "hy", "hylang", "i7", "iced", "icl", "inform7", "ini", "instances", "ipython", "irb", "irpf90", "isbl", "java", "javascript", "jboss-cli", "jinja", "jldoctest", "js", "json", "jsp", "jsx", "julia", "julia-repl", "k", "kdb", "kotlin", "kt", "lasso", "lassoscript", "latex", "lazarus", "ldif", "leaf", "less", "lfm", "lisp", "livecodeserver", "livescript", "llvm", "lpr", "ls", "ls", "lsl", "lua", "m", "mak", "makefile", "markdown", "mathematica", "matlab", "maxima", "md", "mel", "mercury", "mikrotik", "mips", "mipsasm", "mizar", "mjs", "mk", "mkd", "mkdown", "ml", "ml", "mm", "mma", "mojolicious", "monkey", "moo", "moon", "moonscript", "n1ql", "nc", "nginx", "nginxconf", "nim", "nix", "nixos", "nsis", "obj-c", "objc", "objectivec", "ocaml", "openscad", "osascript", "oxygene", "p21", "parser3", "pas", "pascal", "patch", "pb", "pbi", "pcmk", "perl", "pf", "pf.conf", "pgsql", "php", "php-template", "php3", "php4", "php5", "php6", "php7", "pl", "plaintext", "plist", "pm", "podspec", "pony", "postgres", "postgresql", "powershell", "pp", "processing", "profile", "prolog", "properties", "protobuf", "ps", "ps1", "puppet", "purebasic", "py", "pycon", "python", "python-repl", "q", "qml", "qt", "r", "rb", "re", "reasonml", "rib", "roboconf", "routeros", "rs", "rsl", "rss", "ruby", "ruleslanguage", "rust", "sas", "scad", "scala", "scheme", "sci", "scilab", "scss", "sh", "shell", "smali", "smalltalk", "sml", "sqf", "sql", "st", "stan", "stanfuncs", "stata", "step", "step21", "stp", "styl", "stylus", "subunit", "sv", "svg", "svh", "swift", "taggerscript", "tao", "tap", "tcl", "tex", "text", "thor", "thrift", "tk", "toml", "tp", "ts", "twig", "txt", "typescript", "v", "vala", "vb", "vbnet", "vbs", "vbscript", "vbscript-html", "verilog", "vhdl", "vim", "wildfly-cli", "wl", "wsf", "x86asm", "xhtml", "xjb", "xl", "xls", "xlsx", "xml", "xpath", "xq", "xquery", "xsd", "xsl", "yaml", "yml", "zep", "zephir", "zone", "zsh"]
https://github.com/Be1zebub/some-things/blob/master/discord_supported_codeblock_langs

@Azizkhasyi11

This comment has been minimized.

Copy link

@Azizkhasyi11 Azizkhasyi11 commented Mar 2, 2021

Wow, great tutorial thanks!

@Artemis21

This comment has been minimized.

Copy link

@Artemis21 Artemis21 commented Mar 9, 2021

Note that you won't be able to view syntax highlighting on the mobile app.

I believe that this is no longer the case. However, Discord irritatingly does not show code blocks as monospace on mobile anymore.

@Hendiadyoin1

This comment has been minimized.

Copy link

@Hendiadyoin1 Hendiadyoin1 commented Mar 15, 2021

There seems to be no support for links with alt-texts like [text](example.com) -> text

@almeidx

This comment has been minimized.

Copy link

@almeidx almeidx commented Mar 15, 2021

There seems to be no support for links with alt-texts like text -> text

[link](https://google.com "the alt for the hyperlink") link

@Dhoru

This comment has been minimized.

Copy link

@Dhoru Dhoru commented Mar 18, 2021

Does Discord not support the standard Markdown quote blocks using >?

Like this:

> I am in a quote block.

I am in a quote block.

If it does support them I can't figure it out. If it doesn't, why not?

it does now so yay

@Dhoru

This comment has been minimized.

Copy link

@Dhoru Dhoru commented Mar 18, 2021

Does Discord not support the standard Markdown quote blocks using >?
Like this:
> I am in a quote block.

I am in a quote block.

If it does support them I can't figure it out. If it doesn't, why not?

it does now so yay

but it doesn't support quote hierarchy sadly

@Melkanea

This comment has been minimized.

Copy link

@Melkanea Melkanea commented Mar 21, 2021

@ThatOneJay

This comment has been minimized.

Copy link

@ThatOneJay ThatOneJay commented Apr 20, 2021

There is also vb for visual basic

@ThaMessia

This comment has been minimized.

Copy link

@ThaMessia ThaMessia commented Apr 22, 2021

may I suggest to add HolyC and Assembly to discord?

@almeidx

This comment has been minimized.

Copy link

@almeidx almeidx commented Apr 22, 2021

may I suggest to add HolyC and Assembly to discord?

You can, but it isn't related to this gist

Also, x86asm is supported

@MarkGotLasagna

This comment has been minimized.

Copy link

@MarkGotLasagna MarkGotLasagna commented Apr 28, 2021

Highlighting doesn't work for me... what am I doing wrong?

$ this doesn't highlight my text at all

image

@almeidx

This comment has been minimized.

Copy link

@almeidx almeidx commented Apr 28, 2021

Highlighting doesn't work for me... what am I doing wrong?

$ this doesn't highlight my text at all

image

Did you include the language after the first triple backticks?
If yes, what language were you trying to use?

@MarkGotLasagna

This comment has been minimized.

Copy link

@MarkGotLasagna MarkGotLasagna commented Apr 28, 2021

Highlighting doesn't work for me... what am I doing wrong?

$ this doesn't highlight my text at all

image

Did you include the language after the first triple backticks?
If yes, what language were you trying to use?

Yes I did: tex (as in LaTex)

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