1.0.1 • Published 2 years ago

highlightjs-osc2 v1.0.1

Weekly downloads
-
License
CC0-1.0
Repository
github
Last release
2 years ago

highlightjs-osc2

version

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/highlightjs-osc2@1.0.4/dist/osc2.min.js"></script>

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();
1.0.1

2 years ago

1.0.0

2 years ago