highlightjs-osc2
v1.0.1
Published
highlight.js syntax definition for ASAM OpenSCENARIO
Downloads
9
Maintainers
Readme
highlightjs-osc2
Description
osc2 - a language grammar for highlightjs
Static website or simple usage
<script type="text/javascript" src="/path/to/highlight.min.js"></script>
<script type="text/javascript" charset="UTF-8"
src="/path/to/highlightjs-osc2/dist/osc2.min.js"></script>
<script type="text/javascript">
hljs.initHighlightingOnLoad();
</script>
Using directly from the UNPKG CDN
<script type="text/javascript"
src="https://unpkg.com/[email protected]/dist/osc2.min.js"></script>
- More info: https://unpkg.com
With Node or another build system
If you're using Node / Webpack / Rollup / Browserify, etc, simply require the language module, then register it with Highlight.js.
var hljs = require('highlightjs');
var hljsosc2 = require('highlightjs-osc2');
hljs.registerLanguage("osc2", hljsosc2);
hljs.initHighlightingOnLoad();