An Interest In:
Web News this Week
- April 26, 2024
- April 25, 2024
- April 24, 2024
- April 23, 2024
- April 22, 2024
- April 21, 2024
- April 20, 2024
December 26, 2021 04:10 am GMT
Original Link: https://dev.to/doldoki/add-colors-to-your-code-block-4h8k
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:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To