DEV Community

Discussion on: Resources to Build your Blog using Next.js and DEV.to

Collapse
 
eliancodes profile image
Elian Van Cutsem

Hey, I saw you didn't know how to add syntax highlighting to your blog. Just use tripple backticks and add the language. TailwindCSS/Typography will take care of the rest:

<body>
  <p>Hello</p>
</body>
Enter fullscreen mode Exit fullscreen mode

Maybe you can take some inspiration out of my own site / blog:
elianvancutsem.com

Collapse
 
prnvbirajdar profile image
Pranav Birajdar

I have the tripple backticks and language added. For some reason, Typography is not rendering the highlighted syntax. I'm looking into it, and will hopefully get it fixed!

You have an amazing website btw! Love the colors.