is the keyword to format your code blocks with basic markdown. To add syntax highlighting to your multi-line code blocks, you have to enter a keyword after the first set of triple backticks. There are some limitations to this method. Then type the third line and hit Enter to send it to Discord. It allows coders to define the programming language of a document so that important elements of the code will be colorized, for easier reading and understanding.Īs Discord’s multi-line code block markup is intended to be used for this purpose, there are clever ways that you can take advantage of it to add color to your messages. Type the second line and hit Shift + Enter again. Syntax highlighting is a feature commonly found in text editors and Notepad alternatives like Notepad++ and Sublime Text. What Is Syntax Highlighting In Code Blocks On Discord? One thing that really sets multi-line code blocks apart from other markdown is that they support syntax highlighting. It will create a large, dark box around your text, format it in a monospaced font, and preserve all indentations. Second, your text appears in a box on the Discord server. First, you have to do it for every line of text you want to colorizeyou can’t just turn color on or off. To create a multi-line code block, surround your text in triple backticks (“`like this“`). Type the second line and hit Shift + Enter again. Multi-line code blocks allow users to share more complex code that spans across several lines. A single-line code block adds a dark background to white, monospaced text, making it easy for Discord users to share brief snippets of code is a readable format. Dyno is used on over 7. Server management just got a whole lot easier. However, along with single-line code blocks, Discord also supports multi-line code blocks. A fully customizable server moderation Discord bot for your Discord server that features a simple and intuitive web dashboard. If you’re not sure what markdown is, some of the most commonly-used tricks are to surround your text in single asterisks (*like this*) to italicize text or double asterisks (**like this**) to bold text.ĭiscord supports markdown for these, along with underlines (_like this_), strikethroughs (~~like this~~), spoiler tags (||like this||), quotes (> like this), and single-line code blocks (`like this`).
What Are Code Blocks On Discord?Ĭode blocks, sometimes referred to as code boxes or simply boxes, are a form of markdown supported by Discord’s rendering engine. Confused? In this article, let’s talk about code blocks and how you can use them to create Discord color messages.