@treelight/comment
v0.6.0
Published
Treelight language module for comment annotations.
Downloads
633
Maintainers
Readme
@treelight/comment
Comment annotation language definition for Treelight. It highlights tags such as TODO, WARN, and FIXME, issue numbers, mentions, and URLs inside comments injected by host languages.
Install
npm install @treelight/comment @treelight/coreRegister for injections
import comment from '@treelight/comment';
import { Highlighter } from '@treelight/core';
import go from '@treelight/go';
const highlighter = await Highlighter.create({
languages: [go, comment],
});See the Treelight injection guide for full usage.
