A compiler package for lsp-syntax-highlighter, transforming language server protocol data into syntax-highlighted HTML. Version 1.0.4. This package is the build-time component that processes grammar and theme definitions; runtime usage is handled by lsp-syntax-highlighter. Low release cadence, primarily used as a dependency. Differentiator: decouples compilation from rendering, enabling pre-compiled syntax data for performance.
npm install lsp-syntax-highlighter-compilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Compiles grammars and themes, then renders highlighted HTML.
Wrap single grammars/themes in arrays.
Call JSON.stringify(compiled.toJSON()).
Use import { compile } from 'lsp-syntax-highlighter-compiler'Wrap grammar in array: compile([grammar], themes)