@treelight/lua-format-string
v0.6.0
Published
Treelight language module for lua-format-string.
Maintainers
Readme
@treelight/lua-format-string
Lua format strings language definition for Treelight.
Install
npm install @treelight/core @treelight/lua-format-string @treelight/theme-github-darkUsage
import { Highlighter } from '@treelight/core';
import luaFormatString from '@treelight/lua-format-string';
import githubDark from '@treelight/theme-github-dark';
const highlighter = await Highlighter.create({
languages: [luaFormatString],
themes: [githubDark],
theme: 'github-dark',
});
const html = highlighter.highlight(code, 'lua-format-string');This package includes the Tree-sitter grammar WASM and highlight queries for Lua format strings.
See the Treelight README for full usage.
