diff options
author | Wave <wave72@users.noreply.github.com> | 2016-07-22 10:55:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-22 10:55:02 +0200 |
commit | 744ad84714fe0f7a3d90250a4ff02dc4327b9061 (patch) | |
tree | 595fb74ec9ea0bc7130d18bd7993d719a222d343 /library/Text_Highlighter/dtd.xml | |
parent | c38c79d71c8ef70ef649f83e322f1984b75ee2dd (diff) | |
parent | 7d897a3f03bd57ed556433eb84a41963ba44e02e (diff) | |
download | volse-hubzilla-744ad84714fe0f7a3d90250a4ff02dc4327b9061.tar.gz volse-hubzilla-744ad84714fe0f7a3d90250a4ff02dc4327b9061.tar.bz2 volse-hubzilla-744ad84714fe0f7a3d90250a4ff02dc4327b9061.zip |
Merge pull request #6 from redmatrix/dev
Dev
Diffstat (limited to 'library/Text_Highlighter/dtd.xml')
-rw-r--r-- | library/Text_Highlighter/dtd.xml | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/library/Text_Highlighter/dtd.xml b/library/Text_Highlighter/dtd.xml new file mode 100644 index 000000000..18fa07db7 --- /dev/null +++ b/library/Text_Highlighter/dtd.xml @@ -0,0 +1,66 @@ +<?xml version="1.0"?> +<!-- $Id: dtd.xml,v 1.1 2007-06-03 02:35:28 ssttoo Exp $ --> + +<highlight lang="dtd" case="yes"> + + <authors> + <author name="Andrey Demenev" email="demenev@gmail.com"/> + </authors> + + + <default innerClass="code" /> + + <region name="comment" delimClass="comment" innerClass="comment" + start="\<!--" end="--\>"> + </region> + + <region name="redecl" start="\<\!\[" end="\]\]\>" delimClass="brackets" + innerClass="code" never-contained="yes"> + <contains all="yes" /> + </region> + + <region name="tag" start="\<" end="\>" delimClass="brackets" + innerClass="code" > + <contains all="yes" /> + <onlyin region="redecl"/> + </region> + + <region name="brackets" start="\(" end="\)" delimClass="brackets" + innerClass="code" contained="yes"> + <onlyin region="tag"/> + <onlyin region="brackets"/> + <contains block="entity" /> + <contains block="identifier" /> + </region> + + <region name="strsingle" start="'" end="'" delimClass="quotes" + innerClass="string" contained="yes"> + <onlyin region="tag"/> + <contains block="entity" /> + </region> + + <region name="strdouble" start=""" end=""" delimClass="quotes" + innerClass="string" contained="yes"> + <onlyin region="tag"/> + <contains block="entity" /> + </region> + + <block name="tagname" match="(?<=\<)!(ENTITY|ATTLIST|ELEMENT|NOTATION)\b" + innerClass="var" contained="yes"> + <onlyin region="tag"/> + </block> + + <block name="reserved" match="\s(#(IMPLIED|REQUIRED|FIXED))|CDATA|ENTITY|NOTATION|NMTOKENS?|PUBLIC|SYSTEM\b" + innerClass="reserved" contained="yes"> + <onlyin region="tag"/> + </block> + + <block name="pcdata" match="#PCDATA\b" + innerClass="reserved" contained="yes" /> + + <block name="entity" match="(\&|\%)[\w\-\.]+;" innerClass="special" /> + + <block name="identifier" match="[a-z][a-z\d\-\,:]+" + innerClass="identifier" contained="yes" case="no"/> + +</highlight> |