@exercism/highlightjs-8th
v1.0.1
Published
8th language support for Highlight.js
Maintainers
Keywords
Readme
highlightjs-8th ·

This repository contains a highlight.js plugin for the 8th language.
It registers the language as 8th.
Installation
To install the package, run:
npm install @exercism/highlightjs-8thThen register the language:
import hljs from "highlight.js";
import hljsDefine8th from "@exercism/highlightjs-8th";
hljs.registerLanguage("8th", hljsDefine8th);Updating the word list
The grammar highlights 8th's global words and any word in a built-in namespace (such as a:map or s:len).
To refresh the lists from the 8th word list, run:
bun run fetch-wordsPublish on NPM
To publish the package, run:
bun publishLocal development
First, install the dependencies:
bun installThen run:
bun devThis will start a Vite dev server that shows some highlighted 8th code.
To run the tests, run:
bun testEach .txt file in test/markup/ is highlighted and compared with its .expected file.
The example-* files are example solutions from the 8th track.
