This project is currently unmaintained and could use a new maintainer. If interested, please open an issue.
Simply include the Highlight.js library in your webpage or Node app, then load this module.
Simply load the module after loading Highlight.js. The file you want is bbcode.js
in the root directory. This module is just a CDN build of the language, so it will register itself as the Javascript is loaded.
<link rel="stylesheet" href="/path/to/styles/default.css">
<script src="/path/to/highlight.min.js"></script>
<script src="/path/to/highlightjs-bbcode/bbcode.js"></script>
<script type="text/javascript">
hljs.highlightAll();
</script>
<link rel="stylesheet" href="//cdn.jsdelivr.net/gh/highlightjs/cdn-release/build/styles/default.min.css">
<script src="//cdn.jsdelivr.net/gh/highlightjs/cdn-release/build/highlight.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/RedGuy12/highlightjs-bbcode/src/bbcode.min.js"></script>
Released under the MIT License. See LICENSE file for details.
Paul Reid [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
- Learn more about bbcode: https://www.bbcode.org