Socket
Socket
Sign inDemoInstall

highlightjs-redbol

Package Overview
Dependencies
1
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    highlightjs-redbol

Red & Rebol syntax highlighting plugin for highlight.js


Version published
Weekly downloads
68
increased by13.33%
Maintainers
1
Install size
5.07 MB
Created
Weekly downloads
 

Readme

Source

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/cdn-assets@11.9.0/styles/default.min.css">
<script src="https://unpkg.com/@highlightjs/cdn-assets@11.9.0/highlight.min.js"></script>
<!-- and it's easy to individually load additional languages -->
<script src="https://unpkg.com/highlightjs-redbol@2.1.2/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/cdn-assets@11.9.0/styles/default.min.css">
<script type="module">
import hljs from 'https://unpkg.com/@highlightjs/cdn-assets@11.9.0/es/highlight.min.js';
//  and it's easy to individually load & register additional languages
import hljsRebol from 'https://unpkg.com/highlightjs-redbol@2.1.2/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 oldes.huhuman@gmail.com

Keywords

FAQs

Last updated on 21 Feb 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc