Skip to content

Oldes/highlightjs-redbol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rebol & Red language grammar for highlight.js(11.9.0)

version license minified size

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

<link rel="stylesheet" href="/path/to/styles/default.min.css">
<script src="/path/to/highlight.min.js"></script>
<script src="/path/to/redbol.min.js"></script>
<script>hljs.highlightAll();</script>
<pre><code class="language-rebol">...</code></pre>

Using directly from the UNPKG CDN https://unpkg.com

Common JS

<link rel="stylesheet" href="https://unpkg.com/@highlightjs/[email protected]/styles/default.min.css">
<script src="https://unpkg.com/@highlightjs/[email protected]/highlight.min.js"></script>
<!-- and it's easy to individually load additional languages -->
<script src="https://unpkg.com/[email protected]/dist/redbol.min.js"></script>

<pre><code class="language-rebol">...</code></pre>
<script>hljs.highlightAll();</script>

ES6 Modules

<link rel="stylesheet" href="https://unpkg.com/@highlightjs/[email protected]/styles/default.min.css">
<script type="module">
import hljs from 'https://unpkg.com/@highlightjs/[email protected]/es/highlight.min.js';
//  and it's easy to individually load & register additional languages
import hljsRebol from 'https://unpkg.com/[email protected]/dist/redbol.es.min.js';
hljs.registerLanguage('rebol', hljsRebol);
</script>

<pre><code class="language-rebol">...</code></pre>
<script>hljs.highlightAll();</script>

License

Highlight.js is released under the CC0 1.0 License. See LICENSE file for details.

Author & Maintainer

Oldes [email protected]

Links