JSPM

highlightjs-rescript

0.2.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 123
  • Score
    100M100P100Q76218F
  • License MIT

highlight.js syntax definition for ReScript programming language

Package Exports

  • highlightjs-rescript
  • highlightjs-rescript/src/languages/rescript.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (highlightjs-rescript) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

highlightjs-rescript

ReScript programming language grammar for Highlight.js

Usage

Simply load this 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.

<script
  type="text/javascript"
  src="https://unpkg.com/@highlightjs/cdn-assets@11.9.0/highlight.min.js"
></script>
<script
  type="text/javascript"
  src="https://unpkg.com/highlightjs-rescript@0.1.2/dist/rescript.min.js"
></script>
<script type="text/javascript">
  hljs.highlightAll();
</script>

For more details of the usage see Highlight.js main page.

highlightjs-rescript is also published on NPM.