DEV Community

Dennis kinuthia
Dennis kinuthia

Posted on

Today i found out : colorful markdown code blocks

Markdown is neat way to write html like structured content.

Dev.to article is a markdown one one thing that took me till today is how to make my code look colorful

the syntax for a regular code block is

code block before style

and all we have to do to make it look less bland is add the language extension after the 3 opening backticks in this case this is c code

example extension
it also applies for js,ts,....

code block after style

and that's it . better looking code

Top comments (0)