An open API service indexing awesome lists of open source software.

https://github.com/highlightjs/highlightjs-octave

A Highlight.js grammar for GNU Octave
https://github.com/highlightjs/highlightjs-octave

Last synced: 9 months ago
JSON representation

A Highlight.js grammar for GNU Octave

Awesome Lists containing this project

README

          

# highlightjs-octave

This is a Highlight.js syntax definition for [GNU Octave](https://octave.org).

## 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:

```html

hljs.registerLanguage("octave", window.hljsDefineVue);
hljs.highlightAll();

```

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

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

hljsDefineVue(hljs);
hljs.highlightAll();
```

## License

![BSD 3-Clause License](https://img.shields.io/github/license/highlightjs/highlightjs-vue?logo=License%20BSD-3-Clause)

BSD 3-Clause License.

## Credits

Highlightjs-octave is written by [Andrew Janke](https://apjanke.net).

Code is largely based on the [Highlight.js Matlab language definition](https://github.com/highlightjs/highlight.js/blob/master/src/languages/matlab.js) by Denis Bardadym , Eugene Nizhibitsky , and Egor Rogov .

Packaging stuff is based on the [`highlightjs-view` package](https://github.com/highlightjs/highlightjs-vue).