Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 1.39 KB

README.md

File metadata and controls

37 lines (26 loc) · 1.39 KB

highlight.js-nsis

npm npm CircleCI David

highlight.js syntax definition for the NSIS language

Usage

Simply include the highlight.js script package in your webpage or node app, load up this module and apply it to hljs.

If you're not using a build system and just want to embed this in your webpage:

<script src="https://cdn.jsdelivr.net/npm/highlight.js@9/lib/index.min.js"></script>
<script src="nsis.js"></script>
<script>
    hljs.registerLanguage('nsis', window.hljsDefineNSIS);
    hljs.initHighlightingOnLoad();
</script>

If you're using a bundler

const hljs = require('highlight.js');
const hljsDefineNSIS = require('@nsis/highlight.js');

hljsDefineNSIS(hljs);
hljs.initHighlightingOnLoad();

License

Highlight.js is released under the BSD License. See LICENSE file for details.