DEV Community

Dennis kinuthia
Dennis kinuthia

Posted on

3 1

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)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs