Renderer for [[code]]...[[/code]] blocks in Wikidot markup.
When a language attribute is specified and the language is supported
by the built-in highlighter (a TypeScript port of PEAR Text_Highlighter),
the code is syntax-highlighted with hl-* CSS class spans. Otherwise,
the code is rendered as plain escaped text inside <pre><code>.
Renderer for
[[code]]...[[/code]]blocks in Wikidot markup.When a
languageattribute is specified and the language is supported by the built-in highlighter (a TypeScript port of PEAR Text_Highlighter), the code is syntax-highlighted withhl-*CSS class spans. Otherwise, the code is rendered as plain escaped text inside<pre><code>.