taniarascia / comments

Comments
7 stars 0 forks source link

adding-syntax-highlighting-to-code-snippets/ #49

Open utterances-bot opened 4 years ago

utterances-bot commented 4 years ago

Adding Syntax Highlighting to Code Snippets in a Blog or Website | Tania Rascia

I've received a few requests on how to highlight the syntax of snippets of in a blog like I have. Here is an example snippet of SCSS code…

https://www.taniarascia.com/adding-syntax-highlighting-to-code-snippets/

carlos-ds commented 4 years ago

I was able to put Prism.js to good use for my blog thanks to this. Really useful, even though this was published quite a long while ago. Thanks Tania!

suvasish114 commented 2 years ago

Thank you for providing such content, I'm able to use prism.js too. But, how can I highlight c++ code using prism.js. whenever I try to type #include<iostream> inside <code> tag, it treating <iostream> as a tag too.

buddhi-ashen commented 2 years ago

i always want to add a code section to my portfolio. but after this article , its notmy nightmare anumore . thank you for this resource, BTW , I LOVE YOUR blog design.