home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2003 January / PCpro_2003_01.ISO / born / SharpDev / 091setup.exe / data / modes / PHP-Mode.xshd < prev    next >
Encoding:
Extensible Markup Language  |  2002-09-02  |  6.6 KB  |  215 lines

  1. <?xml version="1.0"?>
  2. <!-- syntaxdefinition for PHP 2001 by Chad Smith & Mike Krueger -->
  3.  
  4. <SyntaxDefinition name ="PHP" extensions = ".php">
  5.  
  6.     <Environment> 
  7.         <Default      color ="Black" bgcolor ="White"/>
  8.         <VRuler       color ="Blue"/>
  9.         <Selection    bgcolor ="LightBlue"/>
  10.         <Cursor       color ="DarkBlue"/>
  11.         <LineNumbers  color ="Black" bgcolor ="WhiteSmoke"/>
  12.         <InvalidLines color ="Red"/>
  13.         <EOLMarkers   color ="DarkCyan"/>
  14.         <SpaceMarkers color ="DarkCyan"/>
  15.         <TabMarkers   color ="DarkCyan"/>
  16.         <CaretMarker  color ="Yellow"/>
  17.         <BookMarks    color ="Black" bgcolor ="#FF408080"/>
  18.         <FoldLine     color ="#808080" bgcolor="Black"/>
  19.         <FoldMarker   color ="#808080" bgcolor="White"/>
  20.     </Environment>
  21.  
  22.     <Digits name ="Digits" bold ="false" italic ="false" color ="DarkBlue"/>
  23.  
  24.     <RuleSets>
  25.         <RuleSet ignorecase = "false">
  26.             <Delimiters>~!%^*()-+=|\#/{}[]:;"'<> , .?</Delimiters>
  27.             
  28.             <Span name ="PreprocessorDirectives" bold="false" italic = "false" color = "Green" stopateol ="true">
  29.                 <Begin>#</Begin>
  30.             </Span>
  31.             
  32.             <Span name ="LINECOMMENT" rule = "DocumentSet" bold ="false" italic ="true" color ="SlateGray" stopateol ="true">
  33.                 <Begin>///</Begin>
  34.             </Span>
  35.             
  36.             <Span name ="LINECOMMENT" rule = "TestSet" bold ="false" italic ="true" color ="SlateGray" stopateol ="true">
  37.                 <Begin>//@!/@</Begin>
  38.             </Span>
  39.             
  40.             <Span name ="BLOCKCOMMENT" rule = "TestSet" bold ="false" italic ="true" color ="SlateGray" stopateol ="false">
  41.                 <Begin>/*</Begin>
  42.                 <End>*/</End>
  43.             </Span>
  44.             
  45.             <Span name ="STRING" bold ="false" italic ="false" color ="Magenta" stopateol ="true">
  46.                 <Begin>"</Begin>
  47.                 <End>"</End>
  48.             </Span>
  49.             
  50.             <Span name ="MORELINEDSTRING" bold ="false" italic ="false" color ="Magenta" stopateol ="false">
  51.                 <Begin>@@"</Begin>
  52.                 <End>"</End>
  53.             </Span>
  54.             
  55.             <Span name ="CHAR" bold ="false" italic ="false" color ="Magenta" stopateol ="true">
  56.                 <Begin>'</Begin>
  57.                 <End>'</End>
  58.             </Span>
  59.             
  60.             <MarkPrevious bold ="true" italic ="false" color ="MidnightBlue">(</MarkPrevious>
  61.             
  62.             <KeyWords name ="Punctuation" bold ="false" italic ="false" color ="DarkGreen">
  63.                 <Key word =  "?" />
  64.                 <Key word =  "," />
  65.                 <Key word =  "." />
  66.                 <Key word =  "(" />
  67.                 <Key word =  ")" />
  68.                 <Key word =  "[" />
  69.                 <Key word =  "]" />
  70.                 <Key word =  "{" />
  71.                 <Key word =  "}" />
  72.                 <Key word =  "+" />
  73.                 <Key word =  "-" />
  74.                 <Key word =  "/" />
  75.                 <Key word =  "%" />
  76.                 <Key word =  "*" />
  77.                 <Key word =  "<" />
  78.                 <Key word =  ">" />
  79.                 <Key word =  "^" />
  80.                 <Key word =  "!" />
  81.                 <Key word =  "|" />
  82.             </KeyWords>
  83.             
  84.             <KeyWords name ="AccessKeywords" bold="true" italic = "false" color = "Black">
  85.                 <Key word =  "global" />
  86.                 <Key word =  "my" />
  87.             </KeyWords>
  88.             
  89.             <KeyWords name ="OperatorKeywords" bold="true" italic = "false" color = "DarkCyan">
  90.                 <Key word =  "and" />
  91.                 <Key word =  "or" />
  92.                 <Key word =  "new" />
  93.                 <Key word =  "xor" />
  94.                 <Key word =  "true" />
  95.                 <Key word =  "false" />
  96.             </KeyWords>
  97.             
  98.             
  99.             <KeyWords name ="SelectionStatements" bold="true" italic = "false" color = "Blue">
  100.                 <Key word =  "else" />
  101.                 <Key word =  "if" />
  102.                 <Key word =  "switch" />
  103.                 <Key word =  "case" />
  104.                 <Key word =  "endif" />
  105.                 <Key word =  "elseif" />
  106.             </KeyWords>
  107.             
  108.             <KeyWords name ="IterationStatements" bold="true" italic = "false" color = "Blue">
  109.                 <Key word =  "do" />
  110.                 <Key word =  "for" />
  111.                 <Key word =  "foreach" />
  112.                 <Key word =  "while" />
  113.                 <Key word =  "endwhile" />
  114.                 <Key word =  "exit" />
  115.             </KeyWords>
  116.             
  117.             <KeyWords name ="JumpStatements" bold="false" italic = "false" color = "Navy">
  118.                 <Key word =  "break" />
  119.                 <Key word =  "continue" />
  120.                 <Key word =  "default" />
  121.                 <Key word =  "goto" />
  122.                 <Key word =  "return" />
  123.             </KeyWords>
  124.             
  125.             <KeyWords name ="ExceptionHandlingStatements" bold="true" italic = "false" color = "Teal">
  126.             <Key word =  "require" />
  127.                 <Key word =  "include" />
  128.                 <Key word =  "function" />
  129.                 <Key word =  "return" />
  130.                 <Key word =  "old_function" />
  131.             </KeyWords>
  132.             
  133.             <KeyWords name ="ValueTypes" bold="true" italic = "false" color = "Red">
  134.                 <Key word =  "int" />
  135.                 <Key word =  "integer" />
  136.                 <Key word =  "real" />
  137.                 <Key word =  "double" />
  138.                 <Key word =  "float" />
  139.                 <Key word =  "string" />
  140.                 <Key word =  "array" />
  141.                 <Key word =  "object" />
  142.             </KeyWords>
  143.             
  144.             <KeyWords name ="ReferenceTypes" bold="false" italic = "false" color = "Red">
  145.                 <Key word =  "class" />
  146.                 <Key word =  "new" />
  147.             </KeyWords>
  148.             
  149.             <KeyWords name ="Void" bold="false" italic = "false" color = "Red">
  150.                 <Key word =  "void" />
  151.             </KeyWords>
  152.             
  153.             <KeyWords name ="AccessModifiers" bold="true" italic = "false" color = "Blue">
  154.                 <Key word =  "public" />
  155.                 <Key word =  "private" />
  156.             </KeyWords>
  157.             
  158.             <KeyWords name ="GetSet" bold="false" italic = "false" color = "SaddleBrown">
  159.                 <Key word =  "get" />
  160.                 <Key word =  "set" />
  161.             </KeyWords>
  162.             
  163.             <KeyWords name ="Literals" bold="true" italic = "false" color = "Black">
  164.                 <Key word =  "null" />
  165.                 <Key word =  "value" />
  166.             </KeyWords>
  167.             
  168.             <KeyWords name ="Statements" bold="true" italic = "false" color = "DarkBlue">
  169.                 <Key word =  "var" />
  170.                 <Key word =  "extends" />
  171.                 <Key word =  "list" />
  172.                 <Key word =  "each" />
  173.                 <Key word =  "PHP_SELF" />
  174.             </KeyWords>
  175.         </RuleSet>
  176.             
  177.         <RuleSet name ="TestSet" ignorecase = "true">
  178.             <Delimiters>~!@%^*()-+=|\#/{}[]:;"'<> , .?</Delimiters>
  179.             <KeyWords name ="Testword" bold="true" italic = "true" color = "Red">
  180.                 <Key word =  "TODO" />
  181.             </KeyWords>
  182.         </RuleSet>
  183.         
  184.         <RuleSet name ="DocumentSet" ignorecase = "false">
  185.             <Delimiters>~!@%^*()-+=|\#/{}[]:;"'<> , .?</Delimiters>
  186.             
  187.             <Span name ="XMLTAG" rule = "XMLDocuSet" bold ="false" italic ="true" color ="Gray" stopateol ="true">
  188.                 <Begin><</Begin>
  189.                 <End>></End>
  190.             </Span>
  191.             
  192.             <KeyWords name ="Testword" bold="true" italic = "true" color = "Red">
  193.                 <Key word =  "TODO" />
  194.             </KeyWords>
  195.         </RuleSet>
  196.         
  197.         <RuleSet name ="XMLDocuSet" ignorecase = "false">
  198.             <Delimiters>~!@%^*()-+=|\#/{}[]:;"'<> , .?</Delimiters>
  199.         
  200.             <Span name ="STRING" bold ="true" italic ="true" color ="Silver" stopateol ="true">
  201.                 <Begin>"</Begin>
  202.                 <End>"</End>
  203.             </Span>
  204.         
  205.         
  206.             <KeyWords name ="Punctuation" bold ="true" italic ="true" color ="Gray">
  207.                 <Key word =  "/" />
  208.                 <Key word =  "|" />
  209.                 <Key word =  "=" />
  210.             </KeyWords>
  211.         </RuleSet>
  212.     </RuleSets>
  213. </SyntaxDefinition>
  214.  
  215.