/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

legends2k.github.io
| | rishikeshs.com

How to properly configure Hugo's Chroma syntax highlighter to work with language hints in markdown code blocks.
3.0 parsecs

Travel
| |
| | logr.cogley.info

Was pleasantly suprised at how easy it is to get syntax highlighting going in Hugo, since its inclusion of the fast Golang-based «Chroma» library, and even making it backward compatible with most pygments settings. My config.toml contains the following: 1 2 3 4 pygmentsOptions = "linenos=table" pygmentsCodeFences = "true" pygmentsCodefencesGuessSyntax = "true" pygmentsStyle = "tango" ... and to get it to work you just use a code fence (three backticks) specifying the language like:
4.2 parsecs

Travel
| |
| | www.jayeless.net

I said the other day that I would figure out how to customise the syntax highlighting for the Nord theme?(external link), and now I have. If you want to grab the stylesheet for yourself, I've uploaded it as a snippet on GitLab?(external link). Some quick usage ...
2.9 parsecs

Travel
| |
| | jordemort.dev

Client-side JavaScript? On this site? It's more likely than you think!
13.0 parsecs

Travel
|