highlightjs / highlightjs-bbcode

bbcode - a language grammar for highlight.js
MIT License
7 stars 3 forks source link

This project is currently unmaintained and could use a new maintainer. If interested, please open an issue.


bbcode - a language grammar for highlight.js

Usage

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

Static website or simple usage

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="https://github.com/highlightjs/highlightjs-bbcode/blob/master/path/to/styles/default.css">
<script src="https://github.com/highlightjs/highlightjs-bbcode/raw/master/path/to/highlight.min.js"></script>
<script src="https://github.com/highlightjs/highlightjs-bbcode/raw/master/path/to/highlightjs-bbcode/bbcode.js"></script>
<script type="text/javascript">
  hljs.highlightAll();
</script>

Using directly from the jsDelivr CDN

<link rel="stylesheet" href="https://github.com/highlightjs/highlightjs-bbcode/blob/master//cdn.jsdelivr.net/gh/highlightjs/cdn-release/build/styles/default.min.css">
<script src="https://github.com/highlightjs/highlightjs-bbcode/raw/master//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>

License

Released under the MIT License. See LICENSE file for details.

Author

Paul Reid paul@reid-family.org

Links