<!DOCTYPE Highlight>
<Highlight wildcards="*.PHP; *.PHP3; *.php; *.php3; *.phtml; *.PHTML; *.inc; *.INC" name="PHP">

 <Items>
  <Text         style="" color="#000000" />
  <Char         style="" color="#008000" />
  <Memo         style="" color="#808080" />
  <Attribute    style="" color="#000080" />
  <Tag          style="" color="#800080" />
  <TagA         style="b" color="#8000ff" />
  <TagJS        style=""  color="#0080a0" />
  <TagPHP       style=""  color="#A00000" />
  <TagBold      style="b" color="#800080" />
  <TagItalic    style="i" color="#800080" />
  <TagUnknow    style="" color="#ff0000" />
  <Value        style="" color="#008080" />
  <EndTag       style="" color="#0000ff" />
  <Brace        style="" color="#000000" />
  <phpText      style="" color="#000000" bgcolor="#f0f0f0" />
  <phpKeyword   style="" color="#808000" bgcolor="#f0f0f0" />
  <phpVar       style="" color="#800080" bgcolor="#f0f0f0" />
  <phpTypes     style="" color="#0000b0" bgcolor="#f0f0f0" />
  <phpDataType  style="" color="#000080" bgcolor="#f0f0f0" />
  <phpDecimal   style="" color="#0000ff" bgcolor="#f0f0f0" />
  <phpOctal     style="" color="#008080" bgcolor="#f0f0f0" />
  <phpHex       style="" color="#008080" bgcolor="#f0f0f0" />
  <phpFloat     style="" color="#800080" bgcolor="#f0f0f0" />
  <phpChar      style="" color="#ff00ff" bgcolor="#f0f0f0" />
  <phpString    style="" color="#008000" bgcolor="#f0f0f0" />
  <phpStringVar style="" color="#ff0000" bgcolor="#f0f0f0" />
  <phpMemo      style="" color="#808080" bgcolor="#f0f0f0" />
  <jsText       style="" color="#000000" bgcolor="#f0f0f0" />
  <jsKeyword    style="" color="#808000" bgcolor="#f0f0f0" />
  <jsTypes      style="" color="#000080" bgcolor="#f0f0f0" />
  <jsDataType   style="" color="#000080" bgcolor="#f0f0f0" />
  <jsDecimal    style="" color="#0000ff" bgcolor="#f0f0f0" />
  <jsOctal      style="" color="#008080" bgcolor="#f0f0f0" />
  <jsHex        style="" color="#008080" bgcolor="#f0f0f0" />
  <jsFloat      style="" color="#800080" bgcolor="#f0f0f0" />
  <jsChar       style="" color="#ff00ff" bgcolor="#f0f0f0" />
  <jsString     style="" color="#008000" bgcolor="#f0f0f0" />
  <jsMemo       style="" color="#808080" bgcolor="#f0f0f0" />
  <LineContinue style="" color="#000080" />
 </Items>

 <Break>
  <normal>
   <citem item="" regexp="&lt;" mode="until, include" lineEndContent="switch" />
   <citem item="" regexp="$"    mode="until" />
  </normal>

  <switch>
   <citem item="" regexp="\?"                                  lineEndContent="php" />
   <citem item="" regexp="SCRIPT\s*.*>" mode="noCaseSensitive" lineEndContent="js" />
   <citem item="" regexp="!--"                                 lineEndContent="comment1" />
   <citem item="" regexp="COMMENT\s*>"  mode="noCaseSensitive" lineEndContent="comment2" />
   <citem item="" regexp="."            mode="exclude"         lineEndContent="tag" />
  </switch>

  <php>
   <citem item="" regexp="//[^?]*" mode="until, include" />
   <citem item="" regexp="/\*"    mode="until, include" lineEndContent="phpMultiLineComment" />
   <citem item="" regexp="('|&quot;)" mode="until, exclude" />
   <citem item="" regexp="&quot;" lineEndContent="phpString" />
   <citem item="" regexp="'"      lineEndContent="phpString2" />
   <citem item="" regexp="\?>" mode="until, exclude, allowfull"/>
   <citem item="" regexp="\?>" lineEndContent="normal" />
  </php>

  <phpString>
   <citem item="" regexp="([^&quot;\\]|\\.)+" />
   <citem item="" regexp="&quot;" mode="until, exclude, allowfull" />
   <citem item="" regexp="&quot;" lineEndContent="php" />
  </phpString>

  <phpString2>
   <citem item="" regexp="([^'\\]|\\.)+" />
   <citem item="" regexp="'" mode="until, exclude, allowfull" />
   <citem item="" regexp="'" lineEndContent="php" />
  </phpString2>

  <phpMultiLineComment>
   <citem item="" regexp="\*/" mode="until, exclude, allowfull"/>
   <citem item="" regexp="\*/" lineEndContent="php" />
  </phpMultiLineComment>

  <js>
   <citem item="" regexp="&quot;"                            lineEndContent="string" />
   <citem item="" regexp="//[^&lt;]*"        mode="until, include" lineEndContent="js" />
   <citem item="" regexp="/\*"         mode="until, include" lineEndContent="multiLineComment" />
   <citem item="" regexp="[^\\]&quot;" mode="until, include" lineEndContent="string" />
   <citem item="" regexp="/SCRIPT>" mode="until, exclude, allowfull, noCaseSensitive"/>
   <citem item="" regexp="/SCRIPT>" mode="noCaseSensitive" lineEndContent="normal" />
  </js>

  <string>
   <citem item="" regexp="&quot;"                            lineEndContent="js" />
   <citem item="" regexp="[^\\]&quot;" mode="until, include" lineEndContent="js" />
   <citem item="" regexp="$"           mode="until" />
  </string>

  <multiLineComment>
   <citem item="" regexp="\*/" mode="until, exclude, allowfull"/>
   <citem item="" regexp="\*/" lineEndContent="js" />
  </multiLineComment>

  <comment1>
   <citem item="" regexp="-->" mode="until, exclude, allowfull"/>
   <citem item="" regexp="-->" lineEndContent="normal" />
  </comment1>

  <comment2>
   <citem item="" regexp="/COMMENT>" mode="until, exclude, allowfull, noCaseSensitive"/>
   <citem item="" regexp="/COMMENT>" mode="noCaseSensitive" lineEndContent="normal" />
  </comment2>

  <tag>
   <citem item="" regexp="&quot;" mode="until, include" lineEndContent="tagstring1" />
   <citem item="" regexp="'"      mode="until, include" lineEndContent="tagstring2" />
   <citem item="" regexp="[^\?]*>" mode="until, exclude, allowfull"/>
   <citem item="" regexp="[^\?]*>" lineEndContent="normal" />
  </tag>

  <tag2>
  </tag2>

  <tagstring1>
   <citem item="" regexp="&quot;" mode="until, exclude, allowfull"/>
   <citem item="" regexp="&quot;" lineEndContent="tag" />
  </tagstring1>

  <tagstring2>
   <citem item="" regexp="'" mode="until, exclude, allowfull"/>
   <citem item="" regexp="'" lineEndContent="tag" />
  </tagstring2>

 </Break>

 <Contents>

  <normal>
   <citem item="Text"   regexp="\s+" />
   <citem item="Char"   regexp="&amp;[^;]+;" lineEndContent="normal" />
   <citem item="TagPHP" regexp="&lt;\?php" mode="noCaseSensitive" lineEndContent="php" />
   <citem item="TagPHP" regexp="&lt;\?"    lineEndContent="php" />
   <citem item="TagJS"  regexp="&lt;SCRIPT\s*.*>" mode="noCaseSensitive" lineEndContent="js" />
   <citem item="Memo"   regexp="&lt;!--" lineEndContent="comment1" />
   <citem item="Memo"   regexp="&lt;COMMENT\s*>" mode="noCaseSensitive" lineEndContent="comment2" />
   <citem item="Brace"  regexp="&lt;" lineEndContent="tag" />
   <citem item="Text"   regexp="[^&amp;&lt;]+" lineEndContent="normal" />
  </normal>

  <switch>
  </switch>

  <php>
   <citem item="phpText" regexp="\s+" />

   <citem item="phpKeyword" regexp="\w+" keyword="break case endfor default exit else array for if endif return or and reset global switch xor elseif endwhile do continue while class new this extends function var int integer real float double string object include require"/>
   <citem item="phpTypes"   regexp="\w+" keyword="die printf list each sprintf echo print virtual header setcookie getenv isset unset"/>

   <citem item="phpMemo" regexp="//.*" />
   <citem item="phpMemo" regexp="/\*" lineEndContent="phpMultiLineComment" />

   <citem item="phpVar"      regexp="\$[a-zA-Z][\w_]*" />
   <citem item="phpString"   regexp="&quot;" lineEndContent="phpString" />
   <citem item="phpString"   regexp="'"      lineEndContent="phpString2" />
   <citem item="phpFloat"    regexp="\d*\.\d+[eE]\+\d+[uUfFlL]?" />
   <citem item="phpFloat"    regexp="\d*\.\d+[uUfFlL]?" />
   <citem item="phpHex"      regexp="0[xX][\da-fA-F]+[uUlL]?" />
   <citem item="phpOctal"    regexp="0[0-7]+[uUlL]?" />
   <citem item="phpDecimal"  regexp="\d+[uUlL]?" />
   <citem item="phpChar"     regexp="'.'" />
   <citem item="phpChar"     regexp="'\\([abefnrtv'\\&quot;]|x[\da-fA-F]+|[0-7]+)'" />

   <citem item="TagPHP" regexp="\?>" lineEndContent="normal"/>

   <citem item="phpText" regexp="[\w_]+" lineEndContent="php" />
   <citem item="phpText" regexp="\s+"    lineEndContent="php" />
   <citem item="phpText" regexp="\W"     lineEndContent="php" />
  </php>

  <phpString>
   <citem item="phpString"    regexp="[^&quot;\\\$]+" />
   <citem item="phpChar"      regexp="\\." />
   <citem item="phpStringVar" regexp="\$([a-zA-Z][\w_]*)" />
   <citem item="phpString"    regexp="&quot;" lineEndContent="php" />
  </phpString>

  <phpString2>
   <citem item="phpString"    regexp="[^'\\]+" />
   <citem item="phpChar"      regexp="\\." />
   <citem item="phpString"    regexp="'" lineEndContent="php" />
  </phpString2>

  <phpMultiLineComment>
   <citem item="phpMemo" regexp="\*/" mode="until, exclude, allowfull"/>
   <citem item="phpMemo" regexp="\*/" lineEndContent="php" />
  </phpMultiLineComment>

  <js>
   <citem item="jsText" regexp="\s+" />

   <citem item="jsKeyword" regexp="\w+" keyword="break case endfor default exit else array for if return switch do continue true false while new function var public"/>
   <citem item="jsTypes"   regexp="\w+" keyword="alert document eval"/>

   <citem item="jsMemo" regexp="//.*" />
   <citem item="jsMemo" regexp="/\*" lineEndContent="multiLineComment" />

   <citem item="jsString"   regexp="&quot;" lineEndContent="string" />
   <citem item="jsFloat"    regexp="\d*\.\d+[eE]\+\d+[uUfFlL]?" />
   <citem item="jsFloat"    regexp="\d*\.\d+[uUfFlL]?" />
   <citem item="jsHex"      regexp="0[xX][\da-fA-F]+[uUlL]?" />
   <citem item="jsOctal"    regexp="0[0-7]+[uUlL]?" />
   <citem item="jsDecimal"  regexp="\d+[uUlL]?" />
   <citem item="jsChar"     regexp="'.'" />
   <citem item="jsChar"     regexp="'\\([abefnrtv'\\&quot;]|x[\da-fA-F]+|[0-7]+)'" />

   <citem item="TagJS" regexp="/SCRIPT>" mode="noCaseSensitive" lineEndContent="normal" />

   <citem item="jsText" regexp="[\w_]+" lineEndContent="js" />
   <citem item="jsText" regexp="\s+"    lineEndContent="js" />
   <citem item="jsText" regexp="\W"     lineEndContent="js" />
  </js>

  <string>
   <citem item="jsString" regexp="[^&quot;\\]+" />
   <citem item="jsString" regexp="&quot;" lineEndContent="js" />
   <citem item="jsChar" regexp="\\([abefnrtv'\\&quot;]|x[\da-fA-F]+|[0-7]+)" />
   <citem item="LineContinue" regexp="\\" />
  </string>

  <multiLineComment>
   <citem item="jsMemo" regexp="\*/" mode="until, exclude, allowfull"/>
   <citem item="jsMemo" regexp="\*/" lineEndContent="js" />
  </multiLineComment>

  <comment1>
   <citem item="Memo" regexp="-->" mode="until, exclude, allowfull"/>
   <citem item="Memo" regexp="-->" lineEndContent="normal" />
  </comment1>

  <comment2>
   <citem item="Memo" regexp="/COMMENT>" mode="until, exclude, allowfull, noCaseSensitive"/>
   <citem item="Memo" regexp="/COMMENT>" mode="noCaseSensitive" lineEndContent="normal" />
  </comment2>

  <tag>
   <citem item="Text"       regexp="!" />
   <citem item="Text"       regexp="\s+" />
   <citem item="EndTag"     regexp="/" />
   <citem item="Text"       regexp="\s+" />
   <citem item="Brace"      regexp=">" lineEndContent="normal" />
   <citem item="Attribute"  regexp="[\w_\-]+\s*(?==)" emptyContent="tag2"/>
   <citem item="Text"       regexp="=" />
   <citem item="Text"       regexp="\s+" />
   <citem item="Value"      regexp="&quot;" lineEndContent="tagstring1" />
   <citem item="Value"      regexp="'" lineEndContent="tagstring2" />
   <citem item="Value"      regexp="[\w#%_\-]+" emptyContent="normal"/>
  </tag>

  <tag2>
   <citem item="Value"  regexp="&quot;" lineEndContent="tagstring1" />
   <citem item="Value"  regexp="'" lineEndContent="tagstring2" />
   <citem item="Tag"    regexp="\w+" keyword="html head body frameset base isindex link meta script style title address blockquote center del div h1 h2 h3 h4 h5 h6 hr ins noscript p pre dir dl dt dd li menu ol ul table caption colgroup col thead tfoot tbody tr td th form button fieldset legend input label select optgroup option textarea applet basefont bdo br font iframe img map area object param q span sub sup abbr acronym cite code del dfn em ins kbd samp strong var big s small strike tt u frame noframes doctype ilayer nolayer" caseSensitive="false" lineEndContent="tag" />
   <citem item="TagA"           regexp="\w+" keyword="a" caseSensitive="false" lineEndContent="tag" />
   <citem item="TagBold"        regexp="\w+" keyword="b" caseSensitive="false" lineEndContent="tag" />
   <citem item="TagItalic"      regexp="\w+" keyword="i" caseSensitive="false" lineEndContent="tag" />
   <citem item="TagUnknow" regexp="[\w_\-]+" emptyContent="normal" lineEndContent="tag" />
  </tag2>

  <tagstring1>
   <citem item="Value" regexp="&quot;" mode="until, exclude, allowfull"/>
   <citem item="Value" regexp="&quot;" lineEndContent="tag" />
  </tagstring1>

  <tagstring2>
   <citem item="Value" regexp="'" mode="until, exclude, allowfull"/>
   <citem item="Value" regexp="'" lineEndContent="tag" />
  </tagstring2>

 </Contents>

</Highlight>