@lpm.dev/neo.highlight

Pool

highlight

Zero-dependency syntax highlighter - Fast, modern, tree-shakeable with React adapter and auto-scan support

install @lpm.dev/neo.highlight
136 exportsTypeScript

autoHighlight

function

@lpm.dev/neo.highlight

function autoHighlight(options: ScanOptions): () => void

Auto-highlight: scan and optionally observe for new code blocks. Convenience function combining scan() and observe().

Parameters

optionsScanOptionsScan options

Returns

() => voidCleanup function