Wow, thank you, cool function. Do not know if I need it ever, but real cool.
pspad:
--------------------------------------------------------------------------------
...
Isn't better to use extension for Contao which will highlight code automatically
for you?
Something like this:
https://contao.org/en/extension-list/view/geshi.10000089.en.html
--------------------------------------------------------------------------------

No, this extension is very old and probably will not work on Contao 3.4. 3.4
core has this highlighter build in
https://github.com/syntaxhighlighter/syntaxhighlighter with this languages out
of the box:

ApacheConf
AS3
Bash
C
CSharp
CSS
Delphi
Diff
Groovy
HTML
Java
JavaFx
JavaScript
Perl
PHP
PowerShell
Python
Ruby
Scala
SQL
Text
VB
XHTML
XML

-- 
<http://forum.pspad.com/read.php?2,64676,64697>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem