# Based on xml.lang #
# and xhtml1-transitional.dtd #

<settings>
language=eXtensible HyperText 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="xhtml" ext="xhtml">
</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">
# Xhtml elements:
    <item name="tags_a-d" words="</?\(a\|abbr\|acronym\|address\|applet\|area\|b\|base\|basefont\|bdo\|big\|blockquote\|body\|br\|button\|caption\|center\|cite\|code\|col\|colgroup\|dd\|del\|dfn\|dir\|div\|dl\|dt\)"color="keyword">
    <item name="tags_e-n" words="</?\(em\|fieldset\|font\|form\|frame\|frameset\|h[1-6]\|head\|hr\|html\|i\|iframe\|img\|input\|ins\|isindex\|kbd\|label\|legend\|li\|link\|map\|menu\|meta\|noframes\|noscript\)"color="keyword">
    <item name="tags_o-z" words="</?\(object\|ol\|optgroup\|option\|p\|param\|pre\|q\|s\|samp\|script\|select\|small\|span\|strike\|strong\|style\|sub\|sup\|table\|tbody\|td\|textarea\|tfoot\|th\|thead\|title\|tr\|tt\|u\|ul\|var\)"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>
# General xml items:
    <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">
# xhtml specific items:
    <item name="attributes_core"start="<" words="\b\(class\|id\|style\|title\|dir\|lang\|onclick\|ondblclick\|onkeydown\|onkeypress\|onkeyup\|onmousedown\|onmousemove\|onmouseout\|onmouseover\|onmouseup\)" end=">" color="data_type">
    <item name="attributes_a-d"start="<" words="\b\(abbr\|accept\|accept-charset\|accesskey\|action\|align\|alink\|alt\|archive\|axis\|background\|bgcolor\|border\|cellpadding\|cellspacing\|char\|charoff\|charset\|checked\|cite\|classid\|code\|codebase\|codetype\|color\|cols\|colspan\|compact\|coords\|data\|datetime\|declare\|defer\|disabled\)\b" end=">" color="data_type">
    <item name="attributes_e-n"start="<" words="\b\(enctype\|face\|for\|frame\|frameborder\|headers\|height\|href\|hreflang\|hspace\|http-equiv\|label\|language\|link\|longdesc\|marginheight\|marginwidth\|maxlength\|media\|method\|multiple\|name\|nohref\|noresize\|nowrap\)\b" end=">" color="data_type">
    <item name="attributes_o-z"start="<" words="\b\(object\|onblur\|onchange\|onfocus\|onload\|onreset\|onselect\|onsubmit\|onunload\|prompt\|readonly\|rel\|rev\|rows\|rowspan\|rules\|scheme\|scope\|scrolling\|selected\|shape\|size\|span\|src\|standby\|start\|summary\|tabindex\|target\|text\|type\|usemap\|valign\|value\|valuetype\|vlink\|vspace\|width\)\b" end=">" color="data_type">
</embedded>
