Skip to content

highlightjs/highlightjs-bbcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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="/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>

Using directly from the jsDelivr CDN

<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>

License

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

Author

Paul Reid paul@reid-family.org

Links

About

bbcode - a language grammar for highlight.js

Resources

License

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •