1.1.0 • Published 3 years ago

highlightjs-ocl v1.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
3 years ago

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
1.1.0

3 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago