https://github.com/highlightjs/highlightjs-mirth
Highlight.js grammar for Mirth language
https://github.com/highlightjs/highlightjs-mirth
Last synced: about 1 month ago
JSON representation
Highlight.js grammar for Mirth language
- Host: GitHub
- URL: https://github.com/highlightjs/highlightjs-mirth
- Owner: highlightjs
- License: 0bsd
- Created: 2024-06-04T01:20:50.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-05T18:08:11.000Z (over 1 year ago)
- Last Synced: 2024-12-28T10:47:47.193Z (12 months ago)
- Language: JavaScript
- Size: 1.24 MB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Mirth Syntax Highlighting
This is the syntax highlighting config for using highlight.js on mirth code.
Mirth is a new strongly-typed concatenative programming language.
It is inspired by Forth, Joy, Haskell, Lisp, and monoidal category theory.
Mirth's compiler can be found [here](https://github.com/mirth-lang/mirth)
# Usage
Simply include the `highlight.js` script or package in your webpage or Node app,
add this module and apply it to `hljs`
if you're not using node, assuming you've downloaded the pregenerated mirth.min.js from the dist directory of the repo:
```html
hljs.highlightAll();
```
If you've installed via node:
```js
var hljs = require("highlightjs");
var hljsMirth = require("highlihgtjs-mirth");
hljsMirth(hljs);
hljs.highlightAll();
```