Skip to content

highlight.js syntax definition for object constraint language

License

Notifications You must be signed in to change notification settings

nhomble/highlightjs-ocl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

highlight.js syntax definition for object constraint language

Resources

License

Stars

Watchers

Forks

Packages

No packages published