@exercism/highlightjs-unison
v1.0.1
Published
Unison language support for Highlight.js
Downloads
748
Readme
highlightjs-unison ·

This repository contains a highlight.js plugin for the Unison language.
Installation
To install the package, run:
npm install @exercism/highlightjs-unisonThen register the grammar:
import hljs from "highlight.js";
import hljsDefineUnison from "@exercism/highlightjs-unison";
hljs.registerLanguage("unison", hljsDefineUnison);Publish on NPM
To publish the package, run:
bun publishLocal development
First, install the dependencies:
bun installTo run the tests, run:
bun testTo see the grammar in a browser, run:
bun devThis will start a Vite dev server with a page of highlighted Unison code.
Credits
This grammar was originally forked from highlightjs-unison, written by Rúnar Bjarnason and published by Unison Computing PBC under the MIT License. Its keywords and literal syntax also follow Unison's VS Code extension (MIT License).
The solutions in test/markup/solution-*.txt and test/detect/default.txt come from the Exercism Unison track.
