https://github.com/oldes/highlightjs-redbol
Red and Rebol language grammar for highlight.js
https://github.com/oldes/highlightjs-redbol
Last synced: 2 months ago
JSON representation
Red and Rebol language grammar for highlight.js
- Host: GitHub
- URL: https://github.com/oldes/highlightjs-redbol
- Owner: Oldes
- License: cc0-1.0
- Created: 2020-11-16T18:26:36.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-02-21T14:43:48.000Z (about 1 year ago)
- Last Synced: 2024-05-02T01:26:43.875Z (about 1 year ago)
- Language: JavaScript
- Size: 108 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [Rebol][1] & [Red][2] language grammar for [highlight.js][5](11.9.0)
[](https://www.npmjs.com/package/highlightjs-redbol)
[](https://github.com/Oldes/highlightjs-redbol/blob/master/LICENSE)
[](https://unpkg.com/highlightjs-redbol/dist/redbol.min.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. 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.
```html
hljs.highlightAll();
...
```### Using directly from the UNPKG CDN
#### Common JS
```html...
hljs.highlightAll();
```#### ES6 Modules
```htmlimport 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);...
hljs.highlightAll();
```## License
Highlight.js is released under the CC0 1.0 License. See [LICENSE][4] file
for details.### Author & Maintainer
Oldes
## Links
- The official site for the Highlight.js library is [https://highlightjs.org][5].
- The Highlight.js GitHub project:
- Learn more about Red: [https://www.red-lang.org][2]
- Learn more about Rebol: [http://www.rebol.com][1] or [Oldes' fork][3]
- Project pages: [https://oldes.github.io/highlightjs-redbol/][6][1]: http://www.rebol.com
[2]: https://www.red-lang.org
[3]: https://oldes.github.io/Rebol3
[4]: https://github.com/oldes/highlightjs-redbol/blob/master/LICENSE
[5]: https://highlightjs.org
[6]: https://oldes.github.io/highlightjs-redbol/