Simply include the Highlight.js library in your webpage or Node app, then load this module.
If you're using Node / Webpack / Rollup / Browserify, etc, simply require the language module, then register it with Highlight.js.
var hljs = require('highlightjs');
var hljsWebIDL = require('highlightjs-web-idl');
hljs.registerLanguage("webidl", hljsWebIDL);
hljs.highlightAll();
Highlight.js is released under the MIT License. See LICENSE file for details.
Brahim Djoudi [email protected]
Brahim Djoudi [email protected]
- The official site for the Highlight.js library is https://highlightjs.org/.
- The Highlight.js GitHub project: https://github.com/highlightjs/highlight.js
- Specification: https://www.w3.org/TR/WebIDL