Renders a syntax-highlighted code block using the highlight.js library.
Registered as a process-text handler.
| Parameter | Description |
|---|---|
Param1 |
Code string to syntax-highlight |
Injects highlight.min.js and highlight/default.min.css as page resources, then renders the code in a <pre><code class='sql'> block and calls hljs.initHighlightingOnLoad().
NOTE:
Param1is injected directly into the HTML without escaping — callers must ensure the value is trusted.<>
Returns an HTML fragment with a <pre><code> block and a <script> initialiser.
ObjProcessText(ObjData.ObjData) — inherits database and config access from ObjData.
cythonize -3 -a -i ObjTextHighlight64.py
Updated : 2025-10-02