@nsis/textmate
v0.1.4
Published
NSIS TextMate grammar for Shiki and other highlighters
Maintainers
Readme
@nsis/textmate
NSIS TextMate grammar for Shiki and other highlighters.
Installation
$ npm install @nsis/textmateUsage
import { createHighlighter } from "shiki";
import grammar from "@nsis/textmate";
import example from './bigtest.nsi?raw';
const highlighter = await createHighlighter({
themes: ["one-dark-pro"],
langs: [{ ...grammar, name: "nsis" }],
});
const html = highlighter.codeToHtml(example, {
lang: "nsis",
theme: "one-dark-pro",
});License
Released under the MIT License or Apache License 2.0.
