highlightjs-ocl

1.1.0 • Public • Published

highlightjs-ocl

Node.js CI

This project registers the Object Constraint Language for highlight.js

Usage

unpkg

<script type="text/javascript"
  src="https://unpkg.com/highlightjs-ocl@1.0.3/dist/ocl.min.js"></script>

which links to a minified version of ocl.js which depends on hljs being available.

node

import hljs from 'highlight.js';
import hljsocl from 'highlightjs-ocl'

hljs.registerLanguage('ocl', hljsocl);
hljs.initHighlightingOnLoad();

Building

Go to highlight.js and update ocl.js directly into the library. Then run their build tool

$  node ./tools/build.js ocl

Package Sidebar

Install

npm i highlightjs-ocl

Weekly Downloads

38

Version

1.1.0

License

MIT

Unpacked Size

4.02 kB

Total Files

5

Last publish

Collaborators

  • nhomble