An open API service indexing awesome lists of open source software.

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.

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.