highlightjs-ocl
v1.1.0
Published
highlight.js syntax definition for object constraint language
Downloads
153
Maintainers
Readme
highlightjs-ocl
This project registers the Object Constraint Language for highlight.js
Usage
unpkg
<script type="text/javascript"
src="https://unpkg.com/[email protected]/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