Syntax Highlighting Modules

On this page

HB provides various of syntax highlighting modules, this article lists the supported styles.

Requirements

To use syntax highlighting modules, you’ll need to disable the markup.highlight.noClasses.

hugo.toml

1[markup]
2  [markup.highlight]
3    noClasses = false

hugo.yaml

1markup:
2  highlight:
3    noClasses: false

hugo.json

1{
2   "markup": {
3      "highlight": {
4         "noClasses": false
5      }
6   }
7}

Modules

Preview all styles online.

ModuleVersion
github.com/hbstack/syntax-highlighting/styles/abapVersion
github.com/hbstack/syntax-highlighting/styles/algolVersion
github.com/hbstack/syntax-highlighting/styles/algol-nuVersion
github.com/hbstack/syntax-highlighting/styles/arduinoVersion
github.com/hbstack/syntax-highlighting/styles/autumnVersion
github.com/hbstack/syntax-highlighting/styles/averageVersion
github.com/hbstack/syntax-highlighting/styles/base16-snazzyVersion
github.com/hbstack/syntax-highlighting/styles/borlandVersion
github.com/hbstack/syntax-highlighting/styles/bwVersion
github.com/hbstack/syntax-highlighting/styles/catppuccin-frappeVersion
github.com/hbstack/syntax-highlighting/styles/catppuccin-latteVersion
github.com/hbstack/syntax-highlighting/styles/catppuccin-macchiatoVersion
github.com/hbstack/syntax-highlighting/styles/catppuccin-mochaVersion
github.com/hbstack/syntax-highlighting/styles/colorfulVersion
github.com/hbstack/syntax-highlighting/styles/doom-oneVersion
github.com/hbstack/syntax-highlighting/styles/doom-one2Version
github.com/hbstack/syntax-highlighting/styles/draculaVersion
github.com/hbstack/syntax-highlighting/styles/emacsVersion
github.com/hbstack/syntax-highlighting/styles/friendlyVersion
github.com/hbstack/syntax-highlighting/styles/fruityVersion
github.com/hbstack/syntax-highlighting/styles/github-darkVersion
github.com/hbstack/syntax-highlighting/styles/githubVersion
github.com/hbstack/syntax-highlighting/styles/gruvbox-lightVersion
github.com/hbstack/syntax-highlighting/styles/gruvboxVersion
github.com/hbstack/syntax-highlighting/styles/hr-high-contrastVersion
github.com/hbstack/syntax-highlighting/styles/hrdarkVersion
github.com/hbstack/syntax-highlighting/styles/igorVersion
github.com/hbstack/syntax-highlighting/styles/lovelaceVersion
github.com/hbstack/syntax-highlighting/styles/manniVersion
github.com/hbstack/syntax-highlighting/styles/modus-operandiVersion
github.com/hbstack/syntax-highlighting/styles/modus-vivendiVersion
github.com/hbstack/syntax-highlighting/styles/monokaiVersion
github.com/hbstack/syntax-highlighting/styles/monokailightVersion
github.com/hbstack/syntax-highlighting/styles/murphyVersion
github.com/hbstack/syntax-highlighting/styles/nativeVersion
github.com/hbstack/syntax-highlighting/styles/nordVersion
github.com/hbstack/syntax-highlighting/styles/onedarkVersion
github.com/hbstack/syntax-highlighting/styles/onesenterpriseVersion
github.com/hbstack/syntax-highlighting/styles/paraiso-darkVersion
github.com/hbstack/syntax-highlighting/styles/paraiso-lightVersion
github.com/hbstack/syntax-highlighting/styles/pastieVersion
github.com/hbstack/syntax-highlighting/styles/perldocVersion
github.com/hbstack/syntax-highlighting/styles/pygmentsVersion
github.com/hbstack/syntax-highlighting/styles/rainbow-dashVersion
github.com/hbstack/syntax-highlighting/styles/rose-pine-dawnVersion
github.com/hbstack/syntax-highlighting/styles/rose-pine-moonVersion
github.com/hbstack/syntax-highlighting/styles/rose-pineVersion
github.com/hbstack/syntax-highlighting/styles/rrtVersion
github.com/hbstack/syntax-highlighting/styles/solarized-darkVersion
github.com/hbstack/syntax-highlighting/styles/solarized-dark256Version
github.com/hbstack/syntax-highlighting/styles/solarized-lightVersion
github.com/hbstack/syntax-highlighting/styles/swapoffVersion
github.com/hbstack/syntax-highlighting/styles/tangoVersion
github.com/hbstack/syntax-highlighting/styles/tracVersion
github.com/hbstack/syntax-highlighting/styles/vimVersion
github.com/hbstack/syntax-highlighting/styles/vsVersion
github.com/hbstack/syntax-highlighting/styles/vulcanVersion
github.com/hbstack/syntax-highlighting/styles/witchhazelVersion
github.com/hbstack/syntax-highlighting/styles/xcode-darkVersion
github.com/hbstack/syntax-highlighting/styles/xcodeVersion