Discord Code Block Color. Is it correct behavior and if so, is there any workaround? Advanced Text Formatting in Discord: Writing in Color.
You can make your code block text more attractive by putting colors on it. A spoiler is a special type of block that is initially hidden. Some programming languages have specific color outputs from highlight.js and can be used to Discord now supports Embeds and Webhooks, which can be used to display colored blocks, they also support markdown.
To color code any text in Discord you'll need to use the backquote symbol located in the upper left-hand corner of your keyboard.
Unfortunately you can't color single-line code blocks in Discord.
My message shows as a code block in Discord, but how do I add a straight colored line beside the block? Code blocks are a useful chat markup feature in Discord, they allow you to highlight code, and color messages. Let us know on our Discord server!