https://github.com/stillat/highlightjs-antlers
A Highlight.js module that provides syntax highlighting for Antlers, a templating language for Statamic.
https://github.com/stillat/highlightjs-antlers
Last synced: 3 months ago
JSON representation
A Highlight.js module that provides syntax highlighting for Antlers, a templating language for Statamic.
- Host: GitHub
- URL: https://github.com/stillat/highlightjs-antlers
- Owner: Stillat
- License: cc0-1.0
- Created: 2023-10-06T13:41:30.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-06T21:03:28.000Z (almost 3 years ago)
- Last Synced: 2025-03-02T06:16:14.199Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
Antlers is a templating language for [Statamic](https://statamic.com/).
## Usage
Include the Highlight.js library in your webpage or Node app, and then include the Antlers highlighting module.
### Using the distribution files
If you already have a copy of Highlight.js and the Antlers within your project, you can include them both like so:
```html
hljs.highlightAll();
```
### Using UNPKG CDN
```html
```
### Using Node
You may install the Antlers grammar using
```bash
npm install highlightjs-antlers
```
afterwards, you can register it like so:
```js
import hljs from 'highlight.js';
import hljsAntlers from 'highlightjs-antlers';
hljs.registerLanguage('antlers', hljsAntlers);
hljs.highlightAll();
```
## License
highlightjs-antlers is released under the CC0 1.0 License.