Q&A for How to Format Text as Code in Discord

Return to Full Article

Search
Add New Question
  • Question
    My message shows as a code block in Discord, but how do I add a straight colored line beside the block?
    Community Answer
    Unfortunately you can't color single-line code blocks in Discord. Using a block code should work, however.
  • Question
    When I use text highlighting, can I add code using the things?
    Community Answer
    That isn't possible unless you use two code boxes with two color codes.
  • Question
    How do I color text on discord?
    Community Answer
    You can format Discord code blocks to show colored text, you can do ```diff -(text here) ``` to make text red.
  • Question
    Is there a way to send embed messages?
    Bruce
    Community Answer
    Right now, only Discord bots can send embeds. It isn't possible for users to send embeds.
  • Question
    I put a full code for a webpage (HTML) and some stuff is blue, some is yellow while some is red. Why does that happen? Is it pointing out mistakes and such?
    Community Answer
    This is syntax highlighting. The different colors symbolise different parts of the syntax such as tags, data types, attributes etc. Examples can be found on the highlight.js demo site.
  • Question
    Can you actually code anything with this feature? Or is it just to share the lines of code with people?
    DarkWolf2244
    Community Answer
    The feature is primarily for syntax highlighting. Discord is a chat application, not a code editor or IDE. So it's just to share pretty code with others.
Ask a Question

      Return to Full Article