highlightjs-jolie

Jolie syntax highlighting plugin for highlight.js

Usage no npm install needed!

<script type="module">
  import highlightjsJolie from 'https://cdn.skypack.dev/highlightjs-jolie';
</script>

README

highlightjs-jolie

Jolie language syntax highlighting plugin for highlight.js.

Usage

Simple usage

Simply include the Highlight.js library in your webpage or Node app, then load this module.

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

With Node

If you're using Node, simply require the language module, then register it with highlight.js.

var hljs = require('highlightjs');
var hljsJolie = require('highlightjs-jolie');

hljs.registerLanguage("jolie", hljsJolie);
hljs.initHighlightingOnLoad();

License

The hightlightjs-jolie plugin is licensed under MIT. See LICENSE file for details.

Links