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

Import from @pierre/highlights. Conditional exports initialize WebAssembly automatically for Node.js, browsers, and Cloudflare Workers. Highlighting is synchronous after import; ordinary usage needs no init() or language registration.

Select a reference

Installs
3
GitHub Stars
6.3K
First Seen
Sep 17, 2026