highlightjs / highlightjs-octave

A Highlight.js grammar for GNU Octave
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

highlightjs-octave

This is a Highlight.js syntax definition for GNU Octave.

Usage

Simply include the highlight.js script package in your webpage or Node app, load up this module, and apply it to hljs.

If you're not using a build system and just want to embed this in your webpage:

<script src="https://cdn.jsdelivr.net/npm/highlightjs"></script>
<script src="https://cdn.jsdelivr.net/npm/highlightjs-octave"></script>
<script>
  hljs.registerLanguage("octave", window.hljsDefineVue);
  hljs.highlightAll();
</script>

If you're using webpack / rollup / browserify / node:

var hljs = require("highlightjs");
var hljsDefineVue = require("highlightjs-octave");

hljsDefineVue(hljs);
hljs.highlightAll();

License

BSD 3-Clause License

BSD 3-Clause License.

Credits

Highlightjs-octave is written by Andrew Janke.

Code is largely based on the Highlight.js Matlab language definition by Denis Bardadym bardadymchik@gmail.com, Eugene Nizhibitsky nizhibitsky@ya.ru, and Egor Rogov e.rogov@postgrespro.ru.

Packaging stuff is based on the highlightjs-view package.