Hi! I am writing post about testing framework which emits nice colorful output, how can I colorize text through dev.to markdown?
Thank you.
Hi! I am writing post about testing framework which emits nice colorful output, how can I colorize text through dev.to markdown?
Thank you.
For further actions, you may consider blocking this person and/or reporting abuse
NateDhaliwal -
Mykhailo Toporkov πΊπ¦ -
Ben Halpern -
Abdullah Bashir -
Top comments (6)
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:
To colorize it, add a language immediately after the first set of triple back ticks:
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.
Hi Derek! Will take a look, thanks a lot!