Licence
MIT OR Apache-2.0
Version
0.1.1
Deps
0
Size
44 kB
Vulns
0
Weekly
0
@nsis/textmate
NSIS TextMate grammar for Shiki and other highlighters.
Installation
$ npm install @nsis/textmate
Usage
import { createHighlighter } from "shiki";
import grammar from "@nsis/textmate";
const highlighter = await createHighlighter({
themes: ["one-dark-pro"],
langs: [{ ...grammar, name: "nsis" }],
});
const example = `
OutFile "demo.exe"
Section
DetailPrint "Hello, world!"
SectionEnd
`;
const html = highlighter.codeToHtml(example, {
lang: "nsis",
theme: "one-dark-pro",
});
License
Released under the MIT License or Apache License 2.0.