• Skip to main content
  • Skip to primary sidebar

Technipages

Smart phone, gadget and computer tutorials

  • Topics
    • Android
    • Gaming
    • Hardware
    • Internet
    • iOS
    • MacOS
    • Office
    • Software
    • Windows
    • Definitions
  • Product Reviews
  • Downloads
  • About
Discord: How to Use Code Blocks

Discord: How to Use Code Blocks

Posted on November 24, 2020 by Mel Hawthorne Leave a Comment

In Discord, you can separate text and make it really stand out with the use of code blocks. Code blocks change the background of the affected text but leave the overall formatting of the text alone by default.

A code block is denoted through the use of backticks “`”, with a single backtick on each side being used for a single-line code block, and triple backticks being used on either side for multi-line code blocks. As the name suggests, multi-line code blocks can contain multiple lines of code. Single-line code blocks can’t include multiple lines, although they can wrap over onto multiple lines if the text is too long to display on a single line.

Tip: One thing you may notice when using a multi-line code block is that if your cursor is inside the code block when you hit enter, a new line will be inserted rather than the message being sent. This also applies if you have not yet closed the code block. Multi-line code blocks are the only styling type that affects the text in the message box without needing the closing syntax to already be present.

Single-line code blocks use a single backtick on either side, while multi-line code blocks use triple backticks.

Any emphasis styling included within a code block will be printed literally rather than being interpreted. For example, the pair of asterisks used to italicise text would be visible and would not apply the italic styling. To apply styling effects, you need to put the styling syntax outside of the code block.

Text styling effects need to be applied outside the code block to apply to it, otherwise, the syntax is printed literally.

You can also apply colour formatting to a multi-line code block by specifying a programming language at the start, directly after the opening triple backticks. The colours and the syntax required for those colours will vary between languages. Only certain languages are supported, unfortunately, Discord does not publish a list of supported languages and the associated syntax for colours. A list of known languages and examples of the colours they offer can be found here.

You can apply programming-language-based colouring by specifying supported languages directly after the opening triple backticks.

You Might Also Like

  • How to Use a QR Code Scanner on Android
    How to Use a QR Code Scanner on Android
  • How to Fix Zoom Error Code 614
    How to Fix Zoom Error Code 614
  • Android: Share Wi-Fi Password Via QR Code
    Android: Share Wi-Fi Password Via QR Code
  • Add a New WhatsApp Contact Using Your Custom QR Code
    Add a New WhatsApp Contact Using Your Custom QR Code
  • Zoom: How to Share Code Snippets
    Zoom: How to Share Code Snippets
  • OneNote Error Code 0xE00001AE - Fix
    OneNote Error Code 0xE00001AE - Fix
  • How to Troubleshoot Office 365 Error Code 0x426-0x0
    How to Troubleshoot Office 365 Error Code 0x426-0x0
  • Fix GeForce Experience Error Code 0x0003
    Fix GeForce Experience Error Code 0x0003
  • Troubleshooting Zoom Error Code 3113
    Troubleshooting Zoom Error Code 3113

Filed Under: Software

Reader Interactions

Did this help? Let us know! Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Recent Posts

  • Fix Skype Error: Exchange Needs Your Credentials
  • Fix Skype Notifications Not Working on Windows 10
  • Teams in Outlook: We Couldn’t Schedule the Meeting
  • VR Oculus Quest 2: How to Configure a New Room-Scale Boundary
  • VR Oculus Quest 2: How to Adjust Boundary Sensitivity
  • Dropbox: How To Change the Date Format
  • Microsoft Teams: There Was a Problem Saving the Photo
  • VR Oculus Quest 2: How to Set up Oculus Link

Who’s Behind Technipages?

Baby and Daddy My name is Mitch Bartlett. I've been working in technology for over 20 years in a wide range of tech jobs from Tech Support to Software Testing. I started this site as a technical guide for myself and it has grown into what I hope is a useful reference for all.

Follow me on Twitter, or visit my personal blog.

You May Also Like

© Copyright 2021 Technipages · All Rights Reserved · Privacy