markdown guide

Hey there! You can colorize text in code blocks, but not the regular text.

To use a code block, type wrap some code with triple back ticks:
code block with no colors example

To colorize it, add a language immediately after the first set of triple back ticks:
code block with colors example

You can find more info in our editor guide: dev.to/p/editor_guide


Thanks Andy. Maybe worth it to allow color text snipped, irrelevant to text? But it is probably beyond Markdown scope ...


I think it may be. Perhaps you could use a Codepen embed as described in the guide?

I presume it only works with Language source code? Not with just any text?


carbon.now.sh is a good option if you don't mind sharing your code as an image. A reader wouldn't get the copy/paste option, but you can create a colorful image.

Classic DEV Post from Nov 24 '19

I created the Web Almanac. Ask me anything about the state of the web!

AMA about the Web Almanac and the state of the web.

Alexey Melezhik profile image
Sparrow6 - Raku Automation Framework

dev.to now has dark theme. 🌝

Go to the "misc" section of your settings and select night theme

P.S. It's the best move you can make for your dev career.