Class reference

Core modes used

Standard scopes (classes)

The following standard scopes are used to style the output. Make sure your style has a definition for them.

New scopes (classes)

Keywords used

We divide Go/Hugo keywords into the following standard scopes.

HINT: We generate the Keywords for Hugo at build time using the recent version of the docs. Means highlighting old code won’t detect ancient keywords/buildtins.all keywords. The Go template keywords are handcrafted from the docs. Hupefull thts a complete fetch.

Submodes

highlighjs-hugo-html uses the Highlight.js builtin xml for highlighting HTML as subLanguage. See their documentation for scopes used.


  1. which sounds like a candidate for the fmt namespace in Hugo ↩︎

  2. which is mentioned deeper down in the go template docs. ↩︎