# Based on wml.lang #

<settings>
language=eXtensible Markup Language
compiler=gnome-moz-remote --newwin "%1/%2"
debugger=gnome-moz-remote --newwin "%1/%2"
execution=gnome-moz-remote --newwin "%1/%2"
auto_indent=0
use_spaces=0
tab_stop=2
</settings>

<extensions>
 <item name="xml" ext="xml">
# uncomment this if your dtd's are really xml
# <item name="xml/dtd" ext="dtd">
</extensions>

<syntax>
 <item name="strings1" start="\"" end="\(\"\|\n\)" color="string">
# having problems with single quotes: legal xml but apostrophe's break it... 
# <item name="strings2" start="'" end="'" color="string">
 <item name="comment" start="<!--" end="-->" color="comment">
 <item name="cdata" start="<!\[CDATA\[" end="\]\]>" color="char">
</syntax>

<pattern>
# Processing Instructions 
 <item name="tags_pi" words="<\?\(\(X\|x\)\(M\|m\)\(L\|l\)\)?" color="keyword">
# Declarations 
 <item name="tags_decl" words="<!\(DOCTYPE\|ELEMENT\|ENTITY\|ATTLIST\|NOTATION\)" color="keyword">
# tags_generic should match any tag, valid or not, so replace these if you make 
# xul.lang or whatever based on this.
 <item name="tags_generic1" words="<[a-zA-Z_:][a-zA-Z0-9_:-]*\b" color="keyword"
 <item name="tags_generic2" words="</?[a-zA-Z_:][a-zA-Z0-9_:-]*/?>" color="keyword"
 <item name="hex" words="#[a-fA-F0-9][a-fA-F0-9][a-fA-F0-9][a-fA-F0-9][a-fA-F0-9][a-fA-F0-9]" color="hexidecimal">
 <item name="close" words="\(/\|\?\)?>" color="keyword">
 <item name="entities" words="\(\&\|\%\)[a-zA-Z0-9#]*;" color="variable">
 <item name="operators" words="\(=\|+\|\?\|\*\|\%\)" color="operator">
</pattern>

<embedded>
 <item name="keywords_pi" start="<\?" words="\b\(version\|encoding\|standalone\)" end="\?>" color="data_type">
 <item name="keywords_decl_1" start="<!" words="\b\(SYSTEM\|PUBLIC\|CDATA\|NDATA\|EMPTY\|ANY\|ID\|IDREF\|IDREFS/|ENTITY\|ENTITIES\|NMTOKEN\|NMTOKENS\)" end=">" color="data_type">
 <item name="keywords_decl_2" start="<!" words="\(#FIXED\|#REQUIRED\|#IMPLIED\|#PCDATA\)" end=">" color="data_type">
 <item name="keywords_conditional" start="<!\[" words="\(INCLUDE\|IGNORE\)" end="\]\]>" color="data_type">
 <item name="keywords1" start="<" words="\b\(xml:lang\|xmlns\|xml:space\)\b" end=">" color="data_type">
</embedded>
