wdpr
    Preparing search index...
    • Highlight source code using the Text_Highlighter-compatible engine.

      Parameters

      • code: string

        Raw source code to highlight.

      • language: string

        Programming language name (case-insensitive).

      Returns string | null

      HTML string with hl-* class spans wrapped in <div class="hl-main"><pre>...</pre></div>, or null if the language is not supported.