This project registers the Object Constraint Language for highlight.js
<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.
import hljs from 'highlight.js';
import hljsocl from 'highlightjs-ocl'
hljs.registerLanguage('ocl', hljsocl);
hljs.initHighlightingOnLoad();
Go to highlight.js and update ocl.js
directly into the library. Then run their build tool
$ node ./tools/build.js ocl