highlights

Installation
SKILL.md

@pierre/highlights

Use @pierre/highlights for standalone syntax highlighting with built-in WebAssembly lexers. Choose HTML for a complete code block, tokens for a custom renderer, StreamTokenizer for append-only input, or LiveTokenizer for an editable document.

Install

pnpm add @pierre/highlights

@pierre/highlights contains all lexers in one Wasm module, initialized at import, and all themes. Import shared output functions, StreamTokenizer, and LiveTokenizer from it. registerLanguages(langs) adds custom lexers to its shared output functions.

Installs
73
GitHub Stars
6.7K
First Seen
Sep 17, 2026