Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
December 26, 2021 04:10 am GMT

Add color to your code block

So you want to start a blog on dev.to but when you wrote your code in a code block, you noticed this.

let str = 'Hello World';console.log(str);

Fortunately, dev.to offers an easy way to add colors to your codes for better display and readability.

let str = 'Hello World';console.log(str);

Simply add the name of your programming language right after the first three back-ticks(or the opening back-ticks) for your code block.

I tried Python, Javascript, and PHP. They all work fine.


Original Link: https://dev.to/doldoki/add-colors-to-your-code-block-4h8k

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To