highlight.js syntax definition for the Splunk search processing language (SPL).
npm install highlightjs-spl !license !npm download
Simply include the highlight.js library in your webpage or Node app, then load this module.
Simply load the module after loading highlight.js. You'll use the minified version found in the dist directory. This module is just a CDN build of the language, so it will register itself as the Javascript is loaded.
``html`
jsDelivr
`html`
unpkg
`html`
- More info:
If you're using Node / Webpack / Rollup / Browserify, etc, simply require the language module, then register it with Highlight.js.
`javascript
var hljs = require('highlight.js');
var hljsSpl = require('highlightjs-spl');
hljs.registerLanguage("spl", hljsSpl);
hljs.initHighlightingOnLoad();
`
highlight.js is released under the MIT License. See [LICENSE][1] file for details.
Wei Su
- The official site for the highlight.js library is highlight.js` GitHub project:
- The
- Learn more about Splunk search processing language:
[1]: https://github.com/swsoyee/highlightjs-spl/blob/master/LICENSE