Skip to content
ONLINE 101010 TECH 010101 TIPS
  • Latest
  • News
  • How-To
  • Social
  • Streaming
  • Gaming
  • Reviews
  • Latest
  • News
  • How-To
  • Social
  • Streaming
  • Gaming
  • Reviews
  1. Home/
  2. Social Media/
  3. How To Add Color To Messages On Discord

How To Add Color To Messages On Discord

Craig Snyder
December 27, 2019
4 min read
 - discord-colors

While one of the most lopsided Discord debates may be choosing between its Dark and Light themes, color-based customization doesn’t reach far outside of this choice and setting custom role colors.

However, Discord supports markdown. If you’re unfamiliar with markdown, it’s the simple symbol-based formatting you apply to messages to add effects like bolding and italicization.

Of all markdown supported by Discord, code blocks may be the most versatile. You don’t have to be a coder to use code blocks, and many users aren’t aware that these blocky boxes actually allow users to add color to their text.

Confused? In this article, let’s talk about code blocks and how you can use them to create Discord color messages.

What Are Code Blocks On Discord?

Code blocks, sometimes referred to as code boxes or simply boxes, are a form of markdown supported by Discord’s rendering engine.

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.

Discord 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`).

However, along with single-line code blocks, Discord also supports multi-line code blocks. 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. Multi-line code blocks allow users to share more complex code that spans across several lines.

 - discord-code-blocks

To create a multi-line code block, surround your text in triple backticks (“`like this“`). It will create a large, dark box around your text, format it in a monospaced font, and preserve all indentations.

One thing that really sets multi-line code blocks apart from other markdown is that they support syntax highlighting.

What Is Syntax Highlighting In Code Blocks On Discord?

Syntax highlighting is a feature commonly found in text editors and Notepad alternatives like Notepad++ and Sublime Text. 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.

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

To add syntax highlighting to your multi-line code blocks, you have to enter a keyword after the first set of triple backticks. Here’s an example:

“`md

<md> is the keyword to format your code blocks with basic markdown.

< Other syntax highlighting includes JSON and Python. >“`

When written as a message on Discord, that will appear like this:

 - discord-code-block-example

Knowing which formatting styles bring out which colors is a shot in the dark unless you’ve got a guide covering them all, which we do.

Discord Code Block Syntax Highlighting Styles

Below is a list of all of the known syntax highlighting keywords that Discord’s multi-line code block markup supports.

asciidoc

 - discord-syntax-asciidoc

autohotkey

 - discord-syntax-autohotkey

bash

 - discord-syntax-bash

coffeescript

 - discord-syntax-coffeescript

cpp

 - discord-syntax-cpp

cs

 - discord-syntax-cs

css

 - discord-syntax-css

diff

 - discord-syntax-diff

fix

 - discord-syntax-fix

glsl

 - discord-syntax-glsl

ini

 - discord-syntax-ini

json

 - discord-syntax-json

md

 - discord-syntax-md

ml

 - discord-syntax-ml

prolog

 - discord-syntax-prolog

py

 - discord-syntax-py

xl

 - discord-syntax-xl

xml

 - discord-syntax-xml

As time passes, Discord may continue to add new syntax highlighting options.

While using Discord’s syntax highlighting may not be as clean an implementation as having the option to just change your text color, it’s still very useful and the best solution available right now to create Discord color messages. 

There are plenty of options, so if you ever have a large chunk of text that you need to be formatted for easier reading—such as a command list for your Discord music bot – be sure to try code blocks out.

Tags: Discord
Share
Written by

Craig Snyder

Craig is a long-time writer, coder, and marketer with years of experience in the technology and gaming spaces. Since 2008, he's worked remotely with some of the most notable publications in these industries, specializing in Windows, PC hardware and software, automation, and the like. <a href='https://www.online-tech-tips.com/author/csnyder/'>Read Craig's Full Bio</a>

View Craig's Profile

Recent Posts

  •  - personal finance tools
    10 AI Money Apps That Make Mint Look MedievalJun 6, 2025
  •  - smartwatches
    Is a Smartwatch Worth It in 2025 and Beyond?May 20, 2025
  •  - slow wifi
    How to Fix Slow Wi-Fi on Your SmartphoneMay 6, 2025
  • Programmer coding at computer. - vibe coding
    Vibe Coding 101: Your Guide to AI-Powered ProgrammingMar 26, 2025

Search

Categories

  • Gaming (345)
  • How-To (1,119)
  • News (43)
  • Reviews (436)
  • Social Media (461)
  • Streaming (174)
  • Uncategorized (4)

Popular Tags

Adobe AI Alexa Amazon Android Buying Guides ChatGPT Chrome Discord Explainers Facebook FireTV Gadget Reviews Gmail Google Google Docs Google Maps Google Sheets Home Networking Hulu Instagram Internet LinkedIn Minecraft Netflix Nintendo Switch PlayStation Premiere Reddit Remote Work Roblox Roku Roundups Smart Home Snapchat Software Reviews Spotify Steam TikTok Twitch VR WhatsApp Windows X (Twitter) YouTube

Our Publishing Family

Online Tech Tips is part of the AK Internet Consulting publishing family.

  • HELP DESK GEEK
  • THE BACK ROOM TECH
  • SWITCHING TO MAC
  • XBOX ADVISOR

Daily Email Newsletter

Connect With Us

About Online Tech Tips

Online Tech Tips has published easy-to-follow technology tutorials, honest reviews, and practical how-to guides since 2007 — helping millions of readers solve tech problems and get more from their devices.

Learn More →

© 2007-2026 Online Tech Tips.com, LLC.
All Rights Reserved.

  • Home
  • About Us
  • Editorial Standards
  • Contact Us
  • Terms of Use
  • Privacy Policy
Online