There are comment lines about it in utils\CMarkdonwParser.php
Quote
-
to highlight code blocks with specific language syntax.
-
In particular, if a code block starts with the following:
-
<pre>
-
[language]
-
</pre>
-
The syntax for the specified language will be used to highlight
-
code block. The languages supported include (case-insensitive):
-
ABAP, CPP, CSS, DIFF, DTD, HTML, JAVA, JAVASCRIPT,
-
MYSQL, PERL, PHP, PYTHON, RUBY, SQL, XML
-
You can also specify options to be passed to the syntax highlighter. For example:
-
<pre>
-
[php showLineNumbers=1]
-
</pre>
-
which will show line numbers in each line of the code block.
I use CMarkDownParser in this way:
Quote
$this->contentDisplay=$parser->safeTransform($this->content);
But I cant make it highlight any code in any language.
Is it a feature that hasnt realized yet?