DEV Community

loading...

Discussion on: How do you present code snippets on your personal website?

Collapse
yaythomas profile image
yaythomas

I use the awesome hugo static site generator, which comes with syntax highlighting out of the box. You author in markdown, and code snippets go in back-ticks (exactly like here on dev.to!).

You can configure the colors/fonts of the highlighting with custom stylesheets.

Here it is in action right on the homepage with multiple different highlighting blocks: pypyr.io