highlight.js syntax definitions for Motoko and related languages.
npm i --save highlightjs-motoko
const hljs = require('highlightjs');
const defineMotoko = require('highlightjs-motoko');
defineMotoko(hljs);
hljs.highlightAll();
const hljs = require('highlightjs');
const { motoko, candid } = require('highlightjs-motoko');
// Individually register each language
hljs.registerLanguage('motoko', motoko);
hljs.registerLanguage('candid', candid);
hljs.highlightAll();