Highlight.js components
Highlight Hugo templates using Highlight.js also available as a Discourse Theme Component

Provided Grammars
Highlight template code using our plugin and style surrounding HTML using Highlight.js standard xml
Highlight template code using our plugin and just dump out surrounding text unstyled.
Library files
The shared library containing the grammar and keyword definitions. Needed to build on your own. Having that outside of the grammars results in just one copy if you use both grammars.
Download
The grammars have not been published to any CDN right now. You will have to clone or download the stuff you need.
- latest version of the grammars in the respective dist folders.
- a released package from our releases page. Just grab the Highlight.js grammar or Discourse plugin you need
Usage and Build
Please refer to the respective modules README.md.
Contributing and Issues
Never say never, but currently it’s our working playground so it’s nothing where one could do stable contributions right now.
If you find a bug, have a question or an idea, please use the source repositories Issue tracker.
License
This package is released under the MIT License. See LICENSE file for details.
Author & Maintainer
- Irkode irkode@rikode.de
Links
highlightjs-hugo : The source and documentation repository
Highlight.js : The Internet’s favorite JavaScript syntax highlighter supporting Node.js and the web
Hugo : The world’s fastest framework for building websites
Go HTML template : Go’s html template package
Go TEXT template : Go’s text template package