Skip to content

A Highlight.js module that provides syntax highlighting for Antlers, a templating language for Statamic.

License

Notifications You must be signed in to change notification settings

Stillat/highlightjs-antlers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Antlers is a templating language for Statamic.

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:

<script type="text/javascript" src="/path/to/highlight.min.js"></script>
<script type="text/javascript" charset="UTF-8"
  src="/path/to/highlightjs-antlers/dist/antlers.min.js"></script>
<script type="text/javascript">
  hljs.highlightAll();
</script>

Using UNPKG CDN

<script type="text/javascript"
    src="https://unpkg.com/[email protected]/dist/antlers.min.js"></script>

Using Node

You may install the Antlers grammar using

npm install highlightjs-antlers

afterwards, you can register it like so:

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.

About

A Highlight.js module that provides syntax highlighting for Antlers, a templating language for Statamic.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published