Skip to content

rvanasa/highlightjs-motoko

Repository files navigation

highlightjs-motoko

highlight.js syntax definitions for Motoko and related languages.


Installation

npm i --save highlightjs-motoko

Basic Usage

const hljs = require('highlightjs');
const defineMotoko = require('highlightjs-motoko');

defineMotoko(hljs);
hljs.highlightAll();

Advanced Usage

const hljs = require('highlightjs');
const { motoko, candid } = require('highlightjs-motoko');

// Individually register each language
hljs.registerLanguage('motoko', motoko);
hljs.registerLanguage('candid', candid);

hljs.highlightAll();

About

Syntax highlighting for the Motoko programming language

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published