wdpr
    Preparing search index...

    Module libs/highlighter/engine

    Tokenizer and renderer for the Text_Highlighter-compatible syntax highlighting engine. This is a faithful TypeScript port of the PEAR Text_Highlighter 0.5.1 PHP library's _getToken algorithm and HTML renderer.

    The engine processes source code through a state-machine-based tokenizer that assigns CSS class names to each token, then renders the tokens as <span class="hl-*"> elements.

    Functions

    renderTokens
    tokenize