home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 53 / IOPROG_53.ISO / soft / sharpdevelop / data / modes / csharp-mode.xml < prev    next >
Encoding:
Extensible Markup Language  |  2001-10-26  |  9.3 KB  |  306 lines

  1. <?xml version="1.0"?>
  2. <!-- syntaxdefinition for C# 2000 by Mike Krueger -->
  3.  
  4. <SyntaxDefinition Name = "C#" Extensions = ".cs" Indent = "True">
  5.  
  6.     <Environment DefaultColor = "Black" BackgroundColor = "White"> 
  7.         <HRuler       Color = "Blue"/>
  8.         <Selection    Color = "LightBlue"/>
  9.         <Cursor       Color = "DarkBlue"/>
  10.         <Linenumbers  Color = "Black" BackgroundColor = "WhiteSmoke"/>
  11.         <InvalidLines Color = "Red"/>
  12.         <EOLMarkers   Color = "DarkCyan"/>
  13.         <SpaceMarkers Color = "DarkCyan"/>
  14.         <TabMarkers   Color = "DarkCyan"/>
  15.         <CaretMarker  Color = "Yellow"/>
  16.         <BookMarks    Color = "#408080"/>
  17.         <FoldLine     Color = "#808080" BackgroundColor="Black"/>
  18.         <FoldMarker   Color = "#808080" BackgroundColor="White"/>
  19.     </Environment>
  20.     
  21.     
  22.     <Properties>
  23.         <Property Name = "indentOpen"  Value = "{" />
  24.         <Property Name = "indentClose" Value = "}" />
  25.     </Properties>
  26.     
  27.     <Digits   Name = "Digits" Bold = "False" Italic = "False" Color = "DarkBlue"/>
  28.     
  29.     <RuleSet IgnoreCase = "False">
  30.  
  31.       <Delimeters>~!%^*()-+=|\#/{}[]:;"'<> , .?</Delimeters>
  32.       <Span Name = "PreprocessorDirectives" Bold="False" Italic="False" Color="Green" StopAtEol = "True">
  33.           <Begin>#</Begin>
  34.       </Span>
  35.       
  36.       <Span Name = "LINECOMMENT" Rule = "DocumentSet" Bold = "False" Italic = "True" Color = "SlateGray" StopAtEol = "True">
  37.            <Begin>///</Begin>
  38.       </Span>
  39.       
  40.       <Span Name = "LINECOMMENT" Rule = "TestSet" Bold = "False" Italic = "True" Color = "SlateGray" StopAtEol = "True">
  41.            <Begin>//@!/@</Begin>
  42.       </Span>
  43.       
  44.         <Span Name = "BLOCKCOMMENT" Rule = "TestSet" Bold = "False" Italic = "True" Color = "SlateGray" StopAtEol = "False">
  45.             <Begin>/*</Begin>
  46.             <End>*/</End>
  47.         </Span>
  48.           
  49.         <Span Name = "STRING" Bold = "False" Italic = "False" Color = "Magenta" StopAtEol = "True">
  50.             <Begin>"</Begin>
  51.             <End>"</End>
  52.         </Span>
  53.         
  54.         <Span Name = "MORELINEDSTRING" Bold = "False" Italic = "False" Color = "Magenta" StopAtEol = "False">
  55.             <Begin>@@"</Begin>
  56.             <End>"</End>
  57.         </Span>
  58.         
  59.         <Span Name = "CHAR" Bold = "False" Italic = "False" Color = "Magenta" StopAtEol = "True">
  60.             <Begin>'</Begin>
  61.             <End>'</End>
  62.         </Span>
  63.         
  64.         <MarkPrevious Bold = "True" Italic = "False" Color = "MidnightBlue">(</MarkPrevious>
  65.         
  66.         <KeyWords Name = "Punctuation" Bold = "False" Italic = "False" Color = "DarkGreen">
  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.             <Key Word = "<" />
  83.             <Key Word = ">" />
  84.             <Key Word = "^" />
  85.             <Key Word = "=" />
  86.             <Key Word = "~" />
  87.             <Key Word = "!" />
  88.             <Key Word = "|" />
  89.           </KeyWords>
  90.       
  91.         <KeyWords Name = "AccessKeywords" Bold="True" Italic="False" Color="Black">
  92.             <Key Word = "this" />
  93.             <Key Word = "base" />
  94.         </KeyWords>
  95.         
  96.         <KeyWords Name = "OperatorKeywords" Bold="True" Italic="False" Color="DarkCyan">
  97.             <Key Word = "as" />
  98.             <Key Word = "is" />
  99.             <Key Word = "new" />
  100.             <Key Word = "sizeof" />
  101.             <Key Word = "typeof" />
  102.             <Key Word = "true" />
  103.             <Key Word = "false" />
  104.             <Key Word = "stackalloc" />
  105.         </KeyWords>
  106.       
  107.     
  108.         <KeyWords Name = "SelectionStatements" Bold="True" Italic="False" Color="Blue">
  109.             <Key Word = "else" />
  110.             <Key Word = "if" />
  111.             <Key Word = "switch" />
  112.             <Key Word = "case" />
  113.         </KeyWords>
  114.     
  115.         <KeyWords Name = "IterationStatements" Bold="True" Italic="False" Color="Blue">
  116.             <Key Word = "do" />
  117.             <Key Word = "for" />
  118.             <Key Word = "foreach" />
  119.             <Key Word = "in" />
  120.             <Key Word = "while" />
  121.         </KeyWords>
  122.     
  123.         <KeyWords Name = "JumpStatements" Bold="False" Italic="False" Color="Navy">
  124.             <Key Word = "break" />
  125.             <Key Word = "continue" />
  126.             <Key Word = "default" />
  127.             <Key Word = "goto" />
  128.             <Key Word = "return" />
  129.         </KeyWords>
  130.       
  131.         <KeyWords Name = "ExceptionHandlingStatements" Bold="True" Italic="False" Color="Teal">
  132.             <Key Word = "try" />
  133.             <Key Word = "throw" />
  134.             <Key Word = "catch" />
  135.             <Key Word = "finally" />
  136.         </KeyWords>
  137.       
  138.         <KeyWords Name = "CheckedUncheckedStatements" Bold="True" Italic="False" Color="DarkGray">
  139.             <Key Word = "checked" />
  140.             <Key Word = "unchecked" />
  141.         </KeyWords>
  142.     
  143.         <KeyWords Name = "UnsafeFixedStatements" Bold="False" Italic="False" Color="Olive">
  144.             <Key Word = "fixed" />
  145.             <Key Word = "unsafe" />
  146.         </KeyWords>
  147.       
  148.         <KeyWords Name = "PreprocessorDirectives" Bold="False" Italic="False" Color="Green">
  149.             <Key Word = "#if" />
  150.             <Key Word = "#else" />
  151.             <Key Word = "#elif" />
  152.             <Key Word = "#endif" />
  153.             <Key Word = "#define" />
  154.             <Key Word = "#undef" />
  155.             <Key Word = "#warning" />
  156.             <Key Word = "#error" />
  157.             <Key Word = "#line" />
  158.             <Key Word = "#region" />
  159.             <Key Word = "#endregion" />
  160.           </KeyWords>
  161.       
  162.         <KeyWords Name = "ValueTypes" Bold="True" Italic="False" Color="Red">
  163.             <Key Word = "bool" />
  164.             <Key Word = "byte" />
  165.             <Key Word = "char" />
  166.             <Key Word = "decimal" />
  167.             <Key Word = "double" />
  168.             <Key Word = "enum" />
  169.             <Key Word = "float" />
  170.             <Key Word = "int" />
  171.             <Key Word = "long" />
  172.             <Key Word = "sbyte" />
  173.             <Key Word = "short" />
  174.             <Key Word = "struct" />
  175.             <Key Word = "uint" />
  176.             <Key Word = "ushort" />
  177.             <Key Word = "ulong" />
  178.           </KeyWords>
  179.       
  180.           <KeyWords Name = "ReferenceTypes" Bold="False" Italic="False" Color="Red">
  181.             <Key Word = "class" />
  182.             <Key Word = "interface" />
  183.             <Key Word = "delegate" />
  184.             <Key Word = "object" />
  185.             <Key Word = "string" />
  186.           </KeyWords>
  187.       
  188.           <KeyWords Name = "Void" Bold="False" Italic="False" Color="Red">
  189.             <Key Word = "void" />
  190.           </KeyWords>
  191.       
  192.           <KeyWords Name = "ConversionKeyWords" Bold="True" Italic="False" Color="Pink">
  193.             <Key Word = "explicit" />
  194.             <Key Word = "implicit" />
  195.             <Key Word = "operator" />
  196.           </KeyWords>
  197.       
  198.         <KeyWords Name = "MethodParameters" Bold="True" Italic="False" Color="DeepPink">
  199.             <Key Word = "params" />
  200.             <Key Word = "ref" />
  201.             <Key Word = "out" />
  202.           </KeyWords>
  203.       
  204.           <KeyWords Name = "Modifiers" Bold="False" Italic="False" Color="Brown">
  205.             <Key Word = "abstract" />
  206.             <Key Word = "const" />
  207.             <Key Word = "event" />
  208.             <Key Word = "extern" />
  209.             <Key Word = "override" />
  210.             <Key Word = "readonly" />
  211.             <Key Word = "sealed" />
  212.             <Key Word = "static" />
  213.             <Key Word = "virtual" />
  214.           </KeyWords>
  215.       
  216.           <KeyWords Name = "AccessModifiers" Bold="True" Italic="False" Color="Blue">
  217.             <Key Word = "public" />
  218.             <Key Word = "protected" />
  219.             <Key Word = "private" />
  220.             <Key Word = "internal" />
  221.           </KeyWords>
  222.       
  223.         <KeyWords Name = "NameSpaces" Bold="True" Italic="False" Color="Green">
  224.             <Key Word = "namespace" />
  225.             <Key Word = "using" />
  226.         </KeyWords>
  227.       
  228.         <KeyWords Name = "LockKeyWord" Bold="False" Italic="False" Color="DarkViolet">
  229.             <Key Word = "lock" />
  230.           </KeyWords>
  231.       
  232.         <KeyWords Name = "GetSet" Bold="False" Italic="False" Color="SaddleBrown">
  233.             <Key Word = "get" />
  234.             <Key Word = "set" />
  235.         </KeyWords>
  236.       
  237.         <KeyWords Name = "Literals" Bold="True" Italic="False" Color="Black">
  238.             <Key Word = "null" />
  239.             <Key Word = "value" />
  240.         </KeyWords>
  241.     </RuleSet>
  242.     
  243.     <RuleSet Name = "TestSet" IgnoreCase = "True">
  244.          <Delimeters>~!@%^*()-+=|\#/{}[]:;"'<> , .?</Delimeters>
  245.         <KeyWords Name = "Testword" Bold="True" Italic="True" Color="Red">
  246.             <Key Word = "TODO" />
  247.           </KeyWords>
  248.     </RuleSet>
  249.     
  250.     <RuleSet Name = "DocumentSet" IgnoreCase = "False">
  251.           <Delimeters>~!@%^*()-+=|\#/{}[]:;"'<> , .?</Delimeters>
  252.         
  253.         <Span Name = "XMLTAG" Rule = "XMLDocuSet" Bold = "False" Italic = "True" Color = "Gray" StopAtEol = "True">
  254.             <Begin><</Begin>
  255.             <End>></End>
  256.         </Span>
  257.         
  258.         <KeyWords Name = "Testword" Bold="True" Italic="True" Color="Red">
  259.                 <Key Word = "TODO" />
  260.         </KeyWords>
  261.     </RuleSet>
  262.     
  263.     <RuleSet Name = "XMLDocuSet" IgnoreCase = "False">
  264.           <Delimeters>~!@%^*()-+=|\#/{}[]:;"'<> , .?</Delimeters>
  265.           
  266.         <Span Name = "STRING" Bold = "True" Italic = "True" Color = "Silver" StopAtEol = "True">
  267.             <Begin>"</Begin>
  268.             <End>"</End>
  269.         </Span>
  270.          
  271.         
  272.         <KeyWords Name = "Punctuation" Bold = "True" Italic = "True" Color = "Gray">
  273.             <Key Word = "/" />
  274.             <Key Word = "|" />
  275.             <Key Word = "=" />
  276.           </KeyWords>
  277.           
  278.          <KeyWords Name = "SpecialComment" Bold="True" Italic="True" Color="Gray">
  279.                 <Key Word = "c" />
  280.                 <Key Word = "code" />
  281.                 <Key Word = "example" />
  282.                 <Key Word = "exception" />
  283.                 <Key Word = "list" />
  284.                 <Key Word = "para" />
  285.                 <Key Word = "param" />
  286.                 <Key Word = "paramref" />
  287.                 <Key Word = "permission" />
  288.                 <Key Word = "remarks" />
  289.                 <Key Word = "returns" />
  290.                 <Key Word = "see" />
  291.                 <Key Word = "seealso" />
  292.                 <Key Word = "summary" />
  293.                 <Key Word = "value" />
  294.                 
  295.                 <Key Word = "type" />
  296.                 <Key Word = "Name" />
  297.                 <Key Word = "cref" />
  298.                 <Key Word = "item" />
  299.                 <Key Word = "term" />
  300.                 <Key Word = "description" />
  301.                 <Key Word = "listheader" />
  302.           </KeyWords>
  303.     </RuleSet>
  304. </SyntaxDefinition>
  305.  
  306.