This is the official repository for the Flix language specification for highlight.js.
If you fork this repository there is a GitHub workflow that on each push will automatically build a minimal highlight.js file that only supports Flix for the web.
Additionally, it also generates a Flix spec that can be appended to an existing highlight.js file.
The GitHub workflow always targets the latest release of highlight.js
We refer you to the official documentation for 3rd party grammars for highlight.js (read Testing & Packaging sections).
The highlight.js file built by the GitHub workflow should work automatically when included on a website.
We use mdBook for doc.flix.dev which has some custom styling rules (see css files) This is to properly highlight string interpolation among other things.
Selector | Description |
---|---|
.hljs-subst |
Used for highlighting string interpolation |
.hljs-meta |
Used for highlighting annotations |