provide syntax based [colour] highlighting on code blocks for popular languages. I'm not happy with the line height on the list elements but couldn't see where this was defaulted. This uses the syntax [code=xxx]some code snippet[/code], where xxx represents a code/language style - with about 18 builtins.

This commit is contained in:
redmatrix
2016-06-15 19:44:15 -07:00
parent 476116a972
commit fa48de33c2
55 changed files with 23433 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
<?xml version="1.0"?>
<!-- $Id: xml.xml,v 1.1 2007-06-03 02:35:28 ssttoo Exp $ -->
<highlight lang="xml" case="no">
<authors>
<author name="Andrey Demenev" email="demenev@gmail.com"/>
</authors>
<default innerClass="code" />
<region name="cdata" delimClass="comment" innerClass="comment"
start="\&lt;\!\[CDATA\[" end="\]\]\&gt;">
</region>
<region name="comment" delimClass="comment" innerClass="comment"
start="\&lt;!--" end="--\&gt;">
</region>
<region name="tag" delimClass="brackets" innerClass="code" start="\&lt;[\?\/]?" end="[\/\?]?\&gt;">
<contains block="tagname"/>
<contains region="param"/>
<contains block="paramname"/>
</region>
<block name="tagname" match="(?&lt;=[\&lt;\/?])[\w\-\:]+" innerClass="reserved" contained="yes"/>
<block name="paramname" match="[\w\-\:]+" innerClass="var" contained="yes"/>
<block name="entity" match="(&amp;|%)[\w\-\.]+;" innerClass="special" />
<region name="param" start="&quot;" end="&quot;" delimClass="quotes" innerClass="string" contained="yes">
<contains block="entity"/>
</region>
</highlight>