first commit
17
ICSharpCode.TextEditor/Project/Resources/ASPX.xshd
Normal file
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0"?>
|
||||
<SyntaxDefinition name = "ASP/XHTML" extensions = ".asp;.aspx;.asax;.asmx" extends = "HTML">
|
||||
<RuleSets>
|
||||
<RuleSet ignorecase = "true">
|
||||
<Span name = "ASPCode" rule = "ASP" bold = "false" italic = "false" color = "Black" bgcolor = "#F7F2E3" stopateol = "false">
|
||||
<Begin color="Black" bgcolor="Yellow"><%</Begin>
|
||||
<End color="Black" bgcolor="Yellow">%></End>
|
||||
</Span>
|
||||
</RuleSet>
|
||||
|
||||
<RuleSet name="ASP" ignorecase = "false">
|
||||
<Span name = "COMMENT" bold = "false" italic = "false" color = "Green" bgcolor = "#F7F2E3" stopateol = "true">
|
||||
<Begin>//</Begin>
|
||||
</Span>
|
||||
</RuleSet>
|
||||
</RuleSets>
|
||||
</SyntaxDefinition>
|
||||
32
ICSharpCode.TextEditor/Project/Resources/BAT-Mode.xshd
Normal file
@@ -0,0 +1,32 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<!-- syntaxdefinition for BAT 2000 by Mike Krueger -->
|
||||
<SyntaxDefinition name = "BAT" extensions = ".bat">
|
||||
|
||||
<Environment>
|
||||
<Default color = "Yellow" bgcolor = "Black"/>
|
||||
<Selection color = "White" bgcolor = "Purple"/>
|
||||
<VRuler color = "Green"/>
|
||||
<InvalidLines color = "Red"/>
|
||||
<CaretMarker color = "Yellow"/>
|
||||
|
||||
<LineNumbers color = "Gray" bgcolor = "Black"/>
|
||||
|
||||
<FoldLine color = "Cyan" bgcolor = "Black"/>
|
||||
<FoldMarker color = "Cyan" bgcolor = "White"/>
|
||||
<SelectedFoldLine color = "Green" bgcolor="Black"/>
|
||||
|
||||
<EOLMarkers color = "#E0E0E5"/>
|
||||
<SpaceMarkers color = "#E0E0E5"/>
|
||||
<TabMarkers color = "#E0E0E5"/>
|
||||
</Environment>
|
||||
|
||||
<Digits name = "Digits" bold = "false" italic = "false" color = "Yellow"/>
|
||||
|
||||
<RuleSets>
|
||||
<RuleSet ignorecase = "false">
|
||||
<Delimiters> </Delimiters>
|
||||
</RuleSet>
|
||||
</RuleSets>
|
||||
|
||||
</SyntaxDefinition>
|
||||
303
ICSharpCode.TextEditor/Project/Resources/Boo.xshd
Normal file
@@ -0,0 +1,303 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<SyntaxDefinition name="Boo" extensions=".boo">
|
||||
|
||||
<Environment>
|
||||
<Custom name="LocalVariableCreation" bold="false" italic="false" color="#04ABAB" />
|
||||
</Environment>
|
||||
|
||||
<Properties>
|
||||
<Property name="LineComment" value="#"/>
|
||||
</Properties>
|
||||
|
||||
<Digits name="Digits" bold="false" italic="false" color="DarkBlue" />
|
||||
|
||||
<RuleSets>
|
||||
<RuleSet ignorecase="false" >
|
||||
<Delimiters>&<>~!@$%^*()-+=|\#/{}[]:;"' , .?</Delimiters>
|
||||
|
||||
<Span name="DocLineComment" stopateol="false" bold="false" italic="false" color="Green">
|
||||
<Begin >"""</Begin>
|
||||
<End >"""</End>
|
||||
</Span>
|
||||
|
||||
<Span name="LineComment" stopateol="true" bold="false" italic="false" color="Gray" >
|
||||
<Begin >#</Begin>
|
||||
</Span>
|
||||
|
||||
<Span name="LineComment2" stopateol="true" bold="false" italic="false" color="#999999" >
|
||||
<Begin >//</Begin>
|
||||
</Span>
|
||||
|
||||
<Span name="BlockComment" rule="comments set" stopateol="false" bold="false" italic="false" color="Green" >
|
||||
<Begin >/*</Begin>
|
||||
<End >*/</End>
|
||||
</Span>
|
||||
|
||||
<Span name="String" rule="str formatting" stopateol="true" bold="false" italic="false" color="Blue" escapecharacter="\">
|
||||
<Begin >"</Begin>
|
||||
<End >"</End>
|
||||
</Span>
|
||||
|
||||
<Span name="MultiLineString" rule="str formatting" stopateol="false" bold="false" italic="false" color="Blue" >
|
||||
<Begin >"""</Begin>
|
||||
<End >"""</End>
|
||||
</Span>
|
||||
|
||||
<Span name="Char" stopateol="true" bold="false" italic="false" color="Blue" escapecharacter="\">
|
||||
<Begin >'</Begin>
|
||||
<End >'</End>
|
||||
</Span>
|
||||
|
||||
<Span name="MultiLineRegEx" stopateol="false" bold="false" italic="false" color="#FF6600">
|
||||
<Begin>@@/</Begin>
|
||||
<End>/</End>
|
||||
</Span>
|
||||
|
||||
<Span name="RegEx" stopateol="true" bold="false" italic="false" color="#FF6600">
|
||||
<Begin>/@! @@!/@</Begin>
|
||||
<End>/</End>
|
||||
</Span>
|
||||
|
||||
<MarkPrevious bold="false" italic="false" color="MidnightBlue" >(</MarkPrevious>
|
||||
|
||||
<KeyWords name="Punctuation" bold="false" italic="false" color="DarkGreen" >
|
||||
<Key word="?"/>
|
||||
<Key word=","/>
|
||||
<Key word="."/>
|
||||
<Key word=";"/>
|
||||
<Key word="("/>
|
||||
<Key word=")"/>
|
||||
<Key word="["/>
|
||||
<Key word="]"/>
|
||||
<Key word="{"/>
|
||||
<Key word="}"/>
|
||||
<Key word="+"/>
|
||||
<Key word="-"/>
|
||||
<Key word="/"/>
|
||||
<Key word="%"/>
|
||||
<Key word="*"/>
|
||||
<Key word="<"/>
|
||||
<Key word=">"/>
|
||||
<Key word="^"/>
|
||||
<Key word="="/>
|
||||
<Key word="~"/>
|
||||
<Key word="!"/>
|
||||
<Key word="|"/>
|
||||
<Key word="&"/>
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name="AccessKeywords" bold="true" italic="false" color="Black" >
|
||||
<Key word="self"/>
|
||||
<Key word="super"/>
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name="OperatorKeywords" bold="true" italic="false" color="DarkCyan" >
|
||||
<Key word="is"/>
|
||||
<Key word="isa"/>
|
||||
<Key word="and"/>
|
||||
<Key word="or"/>
|
||||
<Key word="not"/>
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name="SelectionStatements" bold="true" italic="false" color="Blue" >
|
||||
<Key word="else"/>
|
||||
<Key word="elif"/>
|
||||
<Key word="if"/>
|
||||
<Key word="match"/>
|
||||
<Key word="case"/>
|
||||
<Key word="unless"/>
|
||||
<Key word="otherwise"/>
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name="IterationStatements" bold="true" italic="false" color="Blue" >
|
||||
<Key word="for"/>
|
||||
<Key word="in"/>
|
||||
<Key word="while"/>
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name="JumpStatements" bold="false" italic="false" color="Navy" >
|
||||
<Key word="break"/>
|
||||
<Key word="continue"/>
|
||||
<Key word="return"/>
|
||||
<Key word="yield"/>
|
||||
<Key word="goto" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name="ExceptionHandlingStatements" bold="true" italic="false" color="Teal" >
|
||||
<Key word="try"/>
|
||||
<Key word="raise"/>
|
||||
<Key word="ensure"/>
|
||||
<Key word="except"/>
|
||||
<Key word="retry"/>
|
||||
<Key word="success"/>
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name="CheckedUncheckedStatements" bold="true" italic="false" color="DarkGray" >
|
||||
<Key word="checked"/>
|
||||
<Key word="unchecked"/>
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name="UnsafeFixedStatements" bold="false" italic="false" color="Olive" >
|
||||
<Key word="fixed"/>
|
||||
<Key word="unsafe"/>
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name="ValueTypes" bold="true" italic="false" color="Purple" >
|
||||
<Key word="bool"/>
|
||||
<Key word="double"/>
|
||||
<Key word="single"/>
|
||||
<Key word="byte"/>
|
||||
<Key word="sbyte"/>
|
||||
<Key word="short"/>
|
||||
<Key word="ushort"/>
|
||||
<Key word="int"/>
|
||||
<Key word="uint"/>
|
||||
<Key word="long"/>
|
||||
<Key word="ulong"/>
|
||||
<Key word="date"/>
|
||||
<Key word="timespan" />
|
||||
<Key word="decimal" />
|
||||
<Key word="char" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name="ReferenceTypes" bold="true" italic="false" color="Purple" >
|
||||
<Key word="object"/>
|
||||
<Key word="duck"/>
|
||||
<Key word="string"/>
|
||||
<Key word="regex"/>
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name="Void" bold="false" italic="false" color="Red" >
|
||||
<Key word="void"/>
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name="ConversionKeyWords" bold="true" italic="false" color="Blue" >
|
||||
<Key word="cast"/>
|
||||
<Key word="as"/>
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name="Modifiers" bold="false" italic="false" color="Brown" >
|
||||
<Key word="override"/>
|
||||
<Key word="static"/>
|
||||
<Key word="virtual"/>
|
||||
<Key word="abstract"/>
|
||||
<Key word="final"/>
|
||||
<Key word="transient"/>
|
||||
<Key word="partial"/>
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name="AccessModifiers" bold="true" italic="false" color="Blue" >
|
||||
<Key word="public"/>
|
||||
<Key word="protected"/>
|
||||
<Key word="private"/>
|
||||
<Key word="internal"/>
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name="NameSpaces" bold="true" italic="false" color="Green" >
|
||||
<Key word="namespace"/>
|
||||
<Key word="import"/>
|
||||
<Key word="from"/>
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name="GetSet" bold="false" italic="false" color="SaddleBrown" >
|
||||
<Key word="get"/>
|
||||
<Key word="set"/>
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name="Literals" bold="true" italic="false" color="Black" >
|
||||
<Key word="null"/>
|
||||
<Key word="value"/>
|
||||
<Key word="true"/>
|
||||
<Key word="false"/>
|
||||
<Key word="ast" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name="DefaultMacros" bold="false" italic="false" color="Maroon" >
|
||||
<Key word="using"/>
|
||||
<Key word="unchecked"/>
|
||||
<Key word="checked"/>
|
||||
<Key word="lock"/>
|
||||
<Key word="getter"/>
|
||||
<Key word="required"/>
|
||||
<Key word="rawArrayIndexing"/>
|
||||
<Key word="normalArrayIndexing"/>
|
||||
<Key word="yieldAll" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name="Builtins" bold="false" italic="false" color="Purple" >
|
||||
<Key word="assert"/>
|
||||
<Key word="array"/>
|
||||
<Key word="matrix" />
|
||||
<Key word="print"/>
|
||||
<Key word="gets"/>
|
||||
<Key word="prompt"/>
|
||||
<Key word="enumerate"/>
|
||||
<Key word="zip"/>
|
||||
<Key word="filter"/>
|
||||
<Key word="map"/>
|
||||
<Key word="cat"/>
|
||||
<Key word="__eval__" />
|
||||
<Key word="__switch__" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name="Methods" bold="true" italic="false" color="Blue" >
|
||||
<Key word="constructor"/>
|
||||
<Key word="destructor"/>
|
||||
<Key word="def"/>
|
||||
<Key word="include"/>
|
||||
<Key word="event" />
|
||||
<Key word="ref"/>
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name="Pass" bold="false" italic="false" color="Gray" >
|
||||
<Key word="pass"/>
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name="TypesDef" bold="true" italic="false" color="Blue" >
|
||||
<Key word="enum"/>
|
||||
<Key word="class"/>
|
||||
<Key word="struct" />
|
||||
<Key word="interface"/>
|
||||
<Key word="mixin"/>
|
||||
<Key word="callable"/>
|
||||
<Key word="do" />
|
||||
<Key word="of" />
|
||||
</KeyWords>
|
||||
|
||||
</RuleSet>
|
||||
|
||||
<RuleSet ignorecase="false" name="comments set" >
|
||||
<Delimiters>&<>~!@%^*()-+=|\#/{}[]:;"' , .?</Delimiters>
|
||||
|
||||
<Span name="BlockComment" rule="comment set 2" stopateol="false" bold="false" italic="false" color="#339966" >
|
||||
<Begin >/*</Begin>
|
||||
<End >*/</End>
|
||||
</Span>
|
||||
|
||||
</RuleSet>
|
||||
|
||||
<RuleSet ignorecase="false" name="comment set 2" >
|
||||
<Delimiters>&<>~!@%^*()-+=|\#/{}[]:;"' , .?</Delimiters>
|
||||
|
||||
<Span name="BlockComment" rule="comments set" stopateol="false" bold="false" italic="false" color="Teal" >
|
||||
<Begin >/*</Begin>
|
||||
<End >*/</End>
|
||||
</Span>
|
||||
|
||||
</RuleSet>
|
||||
|
||||
<RuleSet ignorecase="false" name="str formatting" >
|
||||
<Delimiters>&<>~!@%^*()-+=|\#/{}[]:;"' , .?</Delimiters>
|
||||
|
||||
<Span name="Formatting" stopateol="false" bold="false" italic="false" color="#993366" >
|
||||
<Begin >${</Begin>
|
||||
<End >}</End>
|
||||
</Span>
|
||||
|
||||
</RuleSet>
|
||||
|
||||
</RuleSets>
|
||||
|
||||
</SyntaxDefinition>
|
||||
|
||||
206
ICSharpCode.TextEditor/Project/Resources/CPP-Mode.xshd
Normal file
@@ -0,0 +1,206 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- syntaxdefinition for C/C++ 2001 by Andrea Paatz and Mike Krueger -->
|
||||
|
||||
<SyntaxDefinition name = "C++.NET" extensions = ".c;.h;.cc;.C;.cpp;.hpp">
|
||||
|
||||
<Properties>
|
||||
<Property name="LineComment" value="//"/>
|
||||
</Properties>
|
||||
|
||||
<Digits name = "Digits" bold = "false" italic = "false" color = "DarkBlue"/>
|
||||
|
||||
<RuleSets>
|
||||
<RuleSet ignorecase = "false">
|
||||
<Delimiters>~!%^*()-+=|\#/{}[]:;"'<> , .?</Delimiters>
|
||||
|
||||
<Span name = "PreprocessorDirectives" bold="false" italic="false" color="Green" stopateol = "true">
|
||||
<Begin>#</Begin>
|
||||
</Span>
|
||||
|
||||
<Span name = "LineComment" bold = "false" italic = "false" color = "Green" stopateol = "true">
|
||||
<Begin>//</Begin>
|
||||
</Span>
|
||||
|
||||
<Span name = "BlockComment" bold = "false" italic = "false" color = "Green" stopateol = "false">
|
||||
<Begin>/*</Begin>
|
||||
<End>*/</End>
|
||||
</Span>
|
||||
|
||||
<Span name = "String" bold = "false" italic = "false" color = "Magenta" stopateol = "true" escapecharacter="\">
|
||||
<Begin>"</Begin>
|
||||
<End>"</End>
|
||||
</Span>
|
||||
|
||||
<Span name = "Char" bold = "false" italic = "false" color = "Magenta" stopateol = "true" escapecharacter="\">
|
||||
<Begin>'</Begin>
|
||||
<End>'</End>
|
||||
</Span>
|
||||
|
||||
<MarkPrevious bold = "true" italic = "false" color = "MidnightBlue">(</MarkPrevious>
|
||||
|
||||
<KeyWords name = "Punctuation" bold = "false" italic = "false" color = "DarkGreen">
|
||||
<Key word = "?" />
|
||||
<Key word = "," />
|
||||
<Key word = "." />
|
||||
<Key word = ";" />
|
||||
<Key word = "(" />
|
||||
<Key word = ")" />
|
||||
<Key word = "[" />
|
||||
<Key word = "]" />
|
||||
<Key word = "{" />
|
||||
<Key word = "}" />
|
||||
<Key word = "+" />
|
||||
<Key word = "-" />
|
||||
<Key word = "/" />
|
||||
<Key word = "%" />
|
||||
<Key word = "*" />
|
||||
<Key word = "<" />
|
||||
<Key word = ">" />
|
||||
<Key word = "^" />
|
||||
<Key word = "=" />
|
||||
<Key word = "~" />
|
||||
<Key word = "!" />
|
||||
<Key word = "|" />
|
||||
<Key word = "&" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "ManagedKeyWords" bold="true" italic="false" color="Black">
|
||||
<Key word = "__abstract" />
|
||||
<Key word = "__box" />
|
||||
<Key word = "__delegate" />
|
||||
<Key word = "__gc" />
|
||||
<Key word = "__identifier" />
|
||||
<Key word = "__nogc" />
|
||||
<Key word = "__pin" />
|
||||
<Key word = "__property" />
|
||||
<Key word = "__sealed" />
|
||||
<Key word = "__try_cast" />
|
||||
<Key word = "__typeof" />
|
||||
<Key word = "__value" />
|
||||
|
||||
|
||||
<Key word = "__event" />
|
||||
<Key word = "__hook" />
|
||||
<Key word = "__raise" />
|
||||
<Key word = "__unhook" />
|
||||
|
||||
<Key word = "__interface" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "AccessKeywords" bold="true" italic="false" color="Black">
|
||||
<Key word = "this" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "OperatorKeywords" bold="true" italic="false" color="DarkCyan">
|
||||
<Key word = "and" />
|
||||
<Key word = "and_eq" />
|
||||
|
||||
<Key word = "bitand" />
|
||||
<Key word = "bitor" />
|
||||
|
||||
<Key word = "new" />
|
||||
<Key word = "not" />
|
||||
<Key word = "not_eq" />
|
||||
<Key word = "or" />
|
||||
<Key word = "or_eq" />
|
||||
<Key word = "xor" />
|
||||
<Key word = "xor_eq" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "NameSpaces" bold="true" italic="false" color="Green">
|
||||
<Key word = "using" />
|
||||
<Key word = "namespace" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "Friends" bold="false" italic="false" color="Brown">
|
||||
<Key word = "friend" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "AccessModifiers" bold="true" italic="false" color="Blue">
|
||||
<Key word = "private" />
|
||||
<Key word = "protected" />
|
||||
<Key word = "public" />
|
||||
|
||||
<Key word = "const" />
|
||||
<Key word = "volatile" />
|
||||
|
||||
<Key word = "static" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "Types" bold="false" italic="false" color="Red">
|
||||
<Key word = "bool" />
|
||||
<Key word = "char" />
|
||||
<Key word = "unsigned" />
|
||||
<Key word = "union" />
|
||||
<Key word = "virtual" />
|
||||
<Key word = "double" />
|
||||
<Key word = "float" />
|
||||
<Key word = "short" />
|
||||
<Key word = "signed" />
|
||||
<Key word = "void" />
|
||||
<Key word = "class" />
|
||||
|
||||
<Key word = "enum" />
|
||||
<Key word = "struct" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "Literals" bold="true" italic="false" color="Black">
|
||||
<Key word = "false" />
|
||||
<Key word = "true" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "IterationStatements" bold="true" italic="false" color="Blue">
|
||||
<Key word = "do" />
|
||||
<Key word = "for" />
|
||||
<Key word = "while" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "JumpStatements" bold="false" italic="false" color="Navy">
|
||||
<Key word = "break" />
|
||||
<Key word = "continue" />
|
||||
<Key word = "goto" />
|
||||
<Key word = "return" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "ExceptionHandlingStatements" bold="true" italic="false" color="Teal">
|
||||
<Key word = "catch" />
|
||||
<Key word = "throw" />
|
||||
<Key word = "try" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "SelectionStatements" bold="true" italic="false" color="Blue">
|
||||
<Key word = "case" />
|
||||
<Key word = "else" />
|
||||
<Key word = "if" />
|
||||
<Key word = "switch" />
|
||||
<Key word = "default" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "KEYWORD1" bold="true" italic="false" color="Blue">
|
||||
<Key word = "asm" />
|
||||
<Key word = "auto" />
|
||||
<Key word = "compl" />
|
||||
<Key word = "mutable" />
|
||||
<Key word = "const_cast" />
|
||||
<Key word = "delete" />
|
||||
<Key word = "dynamic_cast" />
|
||||
<Key word = "explicit" />
|
||||
<Key word = "export" />
|
||||
<Key word = "extern" />
|
||||
<Key word = "inline" />
|
||||
<Key word = "int" />
|
||||
<Key word = "long" />
|
||||
<Key word = "operator" />
|
||||
<Key word = "register" />
|
||||
<Key word = "reinterpret_cast" />
|
||||
<Key word = "sizeof" />
|
||||
<Key word = "static_cast" />
|
||||
<Key word = "template" />
|
||||
<Key word = "typedef" />
|
||||
<Key word = "typeid" />
|
||||
<Key word = "typename" />
|
||||
</KeyWords>
|
||||
</RuleSet>
|
||||
</RuleSets>
|
||||
</SyntaxDefinition>
|
||||
|
||||
339
ICSharpCode.TextEditor/Project/Resources/CSharp-Mode.xshd
Normal file
@@ -0,0 +1,339 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- syntaxdefinition for C# 2000 by Mike Krueger -->
|
||||
|
||||
<SyntaxDefinition name = "C#" extensions = ".cs">
|
||||
|
||||
<Environment>
|
||||
<Custom name="TypeReference" bold="false" italic="false" color="#04ABAB" />
|
||||
<Custom name="UnknownEntity" bold="false" italic="false" color="#AB0404" />
|
||||
</Environment>
|
||||
|
||||
<Properties>
|
||||
<Property name="LineComment" value="//"/>
|
||||
</Properties>
|
||||
|
||||
<Digits name = "Digits" bold = "false" italic = "false" color = "DarkBlue"/>
|
||||
|
||||
<RuleSets>
|
||||
<RuleSet ignorecase="false">
|
||||
<Delimiters>&<>~!%^*()-+=|\#/{}[]:;"' , .?</Delimiters>
|
||||
|
||||
<Span name = "PreprocessorDirectives" rule = "PreprocessorSet" bold="false" italic="false" color="Green" stopateol = "true">
|
||||
<Begin>#</Begin>
|
||||
</Span>
|
||||
|
||||
<Span name = "DocLineComment" rule = "DocCommentSet" bold = "false" italic = "false" color = "Green" stopateol = "true" noescapesequences="true">
|
||||
<Begin bold = "false" italic = "false" color = "Gray">///@!/@</Begin>
|
||||
</Span>
|
||||
|
||||
<Span name = "LineComment" rule = "CommentMarkerSet" bold = "false" italic = "false" color = "Green" stopateol = "true">
|
||||
<Begin>//@!/@</Begin>
|
||||
</Span>
|
||||
<Span name = "LineComment2" rule = "CommentMarkerSet" bold = "false" italic = "false" color = "Green" stopateol = "true">
|
||||
<Begin>////</Begin>
|
||||
</Span>
|
||||
|
||||
<Span name = "BlockComment" rule = "CommentMarkerSet" bold = "false" italic = "false" color = "Green" stopateol = "false">
|
||||
<Begin>/*</Begin>
|
||||
<End>*/</End>
|
||||
</Span>
|
||||
|
||||
<Span name = "String" bold = "false" italic = "false" color = "Blue" stopateol = "true" escapecharacter="\">
|
||||
<Begin>"</Begin>
|
||||
<End>"</End>
|
||||
</Span>
|
||||
|
||||
<Span name = "MultiLineString" bold = "false" italic = "false" color = "Blue" stopateol = "false" escapecharacter='"'>
|
||||
<Begin>@@"</Begin>
|
||||
<End>"</End>
|
||||
</Span>
|
||||
|
||||
<Span name = "Char" bold = "false" italic = "false" color = "Magenta" stopateol = "true" escapecharacter="\">
|
||||
<Begin>'</Begin>
|
||||
<End>'</End>
|
||||
</Span>
|
||||
|
||||
<MarkPrevious bold = "true" italic = "false" color = "MidnightBlue">(</MarkPrevious>
|
||||
|
||||
<KeyWords name = "Punctuation" bold = "false" italic = "false" color = "DarkGreen">
|
||||
<Key word = "?" />
|
||||
<Key word = "," />
|
||||
<Key word = "." />
|
||||
<Key word = ";" />
|
||||
<Key word = "(" />
|
||||
<Key word = ")" />
|
||||
<Key word = "[" />
|
||||
<Key word = "]" />
|
||||
<Key word = "{" />
|
||||
<Key word = "}" />
|
||||
<Key word = "+" />
|
||||
<Key word = "-" />
|
||||
<Key word = "/" />
|
||||
<Key word = "%" />
|
||||
<Key word = "*" />
|
||||
<Key word = "<" />
|
||||
<Key word = ">" />
|
||||
<Key word = "^" />
|
||||
<Key word = "=" />
|
||||
<Key word = "~" />
|
||||
<Key word = "!" />
|
||||
<Key word = "|" />
|
||||
<Key word = "&" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "AccessKeywords" bold="true" italic="false" color="Black">
|
||||
<Key word = "this" />
|
||||
<Key word = "base" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "OperatorKeywords" bold="true" italic="false" color="DarkCyan">
|
||||
<Key word = "as" />
|
||||
<Key word = "is" />
|
||||
<Key word = "new" />
|
||||
<Key word = "sizeof" />
|
||||
<Key word = "typeof" />
|
||||
<Key word = "true" />
|
||||
<Key word = "false" />
|
||||
<Key word = "stackalloc" />
|
||||
</KeyWords>
|
||||
|
||||
|
||||
<KeyWords name = "SelectionStatements" bold="true" italic="false" color="Blue">
|
||||
<Key word = "else" />
|
||||
<Key word = "if" />
|
||||
<Key word = "switch" />
|
||||
<Key word = "case" />
|
||||
<Key word = "default" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "IterationStatements" bold="true" italic="false" color="Blue">
|
||||
<Key word = "do" />
|
||||
<Key word = "for" />
|
||||
<Key word = "foreach" />
|
||||
<Key word = "in" />
|
||||
<Key word = "while" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "JumpStatements" bold="false" italic="false" color="Navy">
|
||||
<Key word = "break" />
|
||||
<Key word = "continue" />
|
||||
<Key word = "goto" />
|
||||
<Key word = "return" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "ContextKeywords" bold="false" italic="false" color="Navy">
|
||||
<Key word = "yield" />
|
||||
<Key word = "partial" />
|
||||
<Key word = "global" />
|
||||
<Key word = "where" />
|
||||
<Key word = "select" />
|
||||
<Key word = "group" />
|
||||
<Key word = "by" />
|
||||
<Key word = "into" />
|
||||
<Key word = "from" />
|
||||
<Key word = "ascending" />
|
||||
<Key word = "descending" />
|
||||
<Key word = "orderby" />
|
||||
<Key word = "let" />
|
||||
<Key word = "join" />
|
||||
<Key word = "on" />
|
||||
<Key word = "equals" />
|
||||
<Key word = "var" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "ExceptionHandlingStatements" bold="true" italic="false" color="Teal">
|
||||
<Key word = "try" />
|
||||
<Key word = "throw" />
|
||||
<Key word = "catch" />
|
||||
<Key word = "finally" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "CheckedUncheckedStatements" bold="true" italic="false" color="DarkGray">
|
||||
<Key word = "checked" />
|
||||
<Key word = "unchecked" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "UnsafeFixedStatements" bold="false" italic="false" color="Olive">
|
||||
<Key word = "fixed" />
|
||||
<Key word = "unsafe" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "ValueTypes" bold="true" italic="false" color="Red">
|
||||
<Key word = "bool" />
|
||||
<Key word = "byte" />
|
||||
<Key word = "char" />
|
||||
<Key word = "decimal" />
|
||||
<Key word = "double" />
|
||||
<Key word = "enum" />
|
||||
<Key word = "float" />
|
||||
<Key word = "int" />
|
||||
<Key word = "long" />
|
||||
<Key word = "sbyte" />
|
||||
<Key word = "short" />
|
||||
<Key word = "struct" />
|
||||
<Key word = "uint" />
|
||||
<Key word = "ushort" />
|
||||
<Key word = "ulong" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "ReferenceTypes" bold="false" italic="false" color="Red">
|
||||
<Key word = "class" />
|
||||
<Key word = "interface" />
|
||||
<Key word = "delegate" />
|
||||
<Key word = "object" />
|
||||
<Key word = "string" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "Void" bold="false" italic="false" color="Red">
|
||||
<Key word = "void" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "ConversionKeyWords" bold="true" italic="false" color="Pink">
|
||||
<Key word = "explicit" />
|
||||
<Key word = "implicit" />
|
||||
<Key word = "operator" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "MethodParameters" bold="true" italic="false" color="DeepPink">
|
||||
<Key word = "params" />
|
||||
<Key word = "ref" />
|
||||
<Key word = "out" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "Modifiers" bold="false" italic="false" color="Brown">
|
||||
<Key word = "abstract" />
|
||||
<Key word = "const" />
|
||||
<Key word = "event" />
|
||||
<Key word = "extern" />
|
||||
<Key word = "override" />
|
||||
<Key word = "readonly" />
|
||||
<Key word = "sealed" />
|
||||
<Key word = "static" />
|
||||
<Key word = "virtual" />
|
||||
<Key word = "volatile" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "AccessModifiers" bold="true" italic="false" color="Blue">
|
||||
<Key word = "public" />
|
||||
<Key word = "protected" />
|
||||
<Key word = "private" />
|
||||
<Key word = "internal" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "NameSpaces" bold="true" italic="false" color="Green">
|
||||
<Key word = "namespace" />
|
||||
<Key word = "using" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "LockKeyWord" bold="false" italic="false" color="DarkViolet">
|
||||
<Key word = "lock" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "GetSet" bold="false" italic="false" color="SaddleBrown">
|
||||
<Key word = "get" />
|
||||
<Key word = "set" />
|
||||
<Key word = "add" />
|
||||
<Key word = "remove" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "Literals" bold="true" italic="false" color="Black">
|
||||
<Key word = "null" />
|
||||
<Key word = "value" />
|
||||
</KeyWords>
|
||||
</RuleSet>
|
||||
|
||||
<RuleSet name = "CommentMarkerSet" ignorecase = "false">
|
||||
<Delimiters><>~!@%^*()-+=|\#/{}[]:;"' , .?</Delimiters>
|
||||
<KeyWords name = "ErrorWords" bold="true" italic="false" color="Red">
|
||||
<Key word = "TODO" />
|
||||
<Key word = "FIXME" />
|
||||
</KeyWords>
|
||||
<KeyWords name = "WarningWords" bold="true" italic="false" color="#EEE0E000">
|
||||
<Key word = "HACK" />
|
||||
<Key word = "UNDONE" />
|
||||
</KeyWords>
|
||||
</RuleSet>
|
||||
|
||||
<RuleSet name = "DocCommentSet" ignorecase = "false">
|
||||
<Delimiters><>~!@%^*()-+=|\#/{}[]:;"' , .?</Delimiters>
|
||||
|
||||
<Span name = "XmlTag" rule = "XmlDocSet" bold = "false" italic = "false" color = "Gray" stopateol = "true">
|
||||
<Begin><</Begin>
|
||||
<End>></End>
|
||||
</Span>
|
||||
|
||||
<KeyWords name = "ErrorWords" bold="true" italic="false" color="Red">
|
||||
<Key word = "TODO" />
|
||||
<Key word = "FIXME" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "WarningWords" bold="true" italic="false" color="#EEE0E000">
|
||||
<Key word = "HACK" />
|
||||
<Key word = "UNDONE" />
|
||||
</KeyWords>
|
||||
</RuleSet>
|
||||
|
||||
<RuleSet name = "PreprocessorSet" ignorecase="false">
|
||||
<Delimiters>&<>~!%^*()-+=|\#/{}[]:;"' , .?</Delimiters>
|
||||
|
||||
<KeyWords name = "PreprocessorDirectives" bold="true" italic="false" color="Green">
|
||||
<Key word = "if" />
|
||||
<Key word = "else" />
|
||||
<Key word = "elif" />
|
||||
<Key word = "endif" />
|
||||
<Key word = "define" />
|
||||
<Key word = "undef" />
|
||||
<Key word = "warning" />
|
||||
<Key word = "error" />
|
||||
<Key word = "line" />
|
||||
<Key word = "region" />
|
||||
<Key word = "endregion" />
|
||||
<Key word = "pragma" />
|
||||
</KeyWords>
|
||||
</RuleSet>
|
||||
|
||||
<RuleSet name = "XmlDocSet" ignorecase = "false">
|
||||
<Delimiters><>~!@%^*()-+=|\#/{}[]:;"' , .?</Delimiters>
|
||||
|
||||
<Span name = "String" bold = "true" italic = "false" color = "Silver" stopateol = "true">
|
||||
<Begin>"</Begin>
|
||||
<End>"</End>
|
||||
</Span>
|
||||
|
||||
|
||||
<KeyWords name = "Punctuation" bold = "true" italic = "false" color = "Gray">
|
||||
<Key word = "/" />
|
||||
<Key word = "|" />
|
||||
<Key word = "=" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "SpecialComment" bold="true" italic="false" color="Gray">
|
||||
<Key word = "c" />
|
||||
<Key word = "code" />
|
||||
<Key word = "example" />
|
||||
<Key word = "exception" />
|
||||
<Key word = "list" />
|
||||
<Key word = "para" />
|
||||
<Key word = "param" />
|
||||
<Key word = "paramref" />
|
||||
<Key word = "permission" />
|
||||
<Key word = "remarks" />
|
||||
<Key word = "returns" />
|
||||
<Key word = "see" />
|
||||
<Key word = "seealso" />
|
||||
<Key word = "summary" />
|
||||
<Key word = "value" />
|
||||
<Key word = "inheritdoc" />
|
||||
|
||||
<Key word = "type" />
|
||||
<Key word = "name" />
|
||||
<Key word = "cref" />
|
||||
<Key word = "item" />
|
||||
<Key word = "term" />
|
||||
<Key word = "description" />
|
||||
<Key word = "listheader" />
|
||||
</KeyWords>
|
||||
</RuleSet>
|
||||
</RuleSets>
|
||||
</SyntaxDefinition>
|
||||
|
||||
97
ICSharpCode.TextEditor/Project/Resources/Coco-Mode.xshd
Normal file
@@ -0,0 +1,97 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!-- syntaxdefinition for Coco/R 2003 by Mike Krueger -->
|
||||
<SyntaxDefinition name="Coco" extensions=".atg">
|
||||
|
||||
<Digits name="Digits" bold="false" italic="false" color="DarkBlue" />
|
||||
|
||||
<RuleSets>
|
||||
<RuleSet ignorecase="false">
|
||||
<Delimiters>&<>~!@%^*()-+=|\#/{}[]:;"' , .?</Delimiters>
|
||||
|
||||
<Span name = "LINECOMMENT" bold = "false" italic = "true" color = "Gray" stopateol = "true">
|
||||
<Begin>//</Begin>
|
||||
</Span>
|
||||
|
||||
<Span name = "BLOCKCOMMENT" bold = "false" italic = "true" color = "Gray" stopateol = "false">
|
||||
<Begin>/*</Begin>
|
||||
<End>*/</End>
|
||||
</Span>
|
||||
|
||||
|
||||
<Span name="CSharpCode2" rule="CSharp" bold="false" italic="false" color="Black" stopateol="false">
|
||||
<Begin bold = "true" color = "Blue">COMPILER</Begin>
|
||||
<End bold = "true" color = "Blue">TOKENNAMES</End>
|
||||
</Span>
|
||||
|
||||
<Span name = "STRING" bold = "false" italic = "false" color = "DarkGreen" stopateol = "true">
|
||||
<Begin>"</Begin>
|
||||
<End>"</End>
|
||||
</Span>
|
||||
|
||||
<Span name = "CHAR" bold = "false" italic = "false" color = "DarkGreen" stopateol = "true">
|
||||
<Begin>'</Begin>
|
||||
<End>'</End>
|
||||
</Span>
|
||||
|
||||
<Span name = "paramlist" rule="ParamList" bold = "false" italic = "false" color = "Black" stopateol = "true">
|
||||
<Begin bold="true" color = "Black" ><</Begin>
|
||||
<End bold="true" color = "Black" >></End>
|
||||
</Span>
|
||||
|
||||
<Span name="CSharpCode" rule="CSharp" bold="false" italic="false" color="DarkSlateGray" stopateol="false">
|
||||
<Begin bold = "true" italic="true" color = "Green">(.</Begin>
|
||||
<End bold = "true" italic="true" color = "Green">.)</End>
|
||||
</Span>
|
||||
|
||||
|
||||
<KeyWords name = "Punctuation" bold = "true" italic = "false" color = "Black">
|
||||
<Key word = "{"/>
|
||||
<Key word = "}"/>
|
||||
<Key word = "("/>
|
||||
<Key word = ")"/>
|
||||
<Key word = "["/>
|
||||
<Key word = "]"/>
|
||||
<Key word = "|"/>
|
||||
<Key word = "+"/>
|
||||
<Key word = "-"/>
|
||||
<Key word = "="/>
|
||||
<Key word = "."/>
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "KeyWords" bold = "true" italic = "false" color = "Blue">
|
||||
<Key word = "ANY"/>
|
||||
<Key word = "CHARACTERS"/>
|
||||
<Key word = "COMMENTS"/>
|
||||
<Key word = "COMPILER"/>
|
||||
<Key word = "CONTEXT"/>
|
||||
<Key word = "END"/>
|
||||
<Key word = "FROM"/>
|
||||
<Key word = "IF"/>
|
||||
<Key word = "IGNORE"/>
|
||||
<Key word = "NAMESPACE"/>
|
||||
<Key word = "NESTED"/>
|
||||
<Key word = "PRAGMAS"/>
|
||||
<Key word = "PRODUCTIONS"/>
|
||||
<Key word = "SYNC"/>
|
||||
<Key word = "TO"/>
|
||||
<Key word = "TOKENS"/>
|
||||
<Key word = "TOKENNAMES"/>
|
||||
<Key word = "WEAK"/>
|
||||
<Key word = "using"/>
|
||||
</KeyWords>
|
||||
|
||||
</RuleSet>
|
||||
|
||||
<RuleSet name="CSharp" reference = "C#" ignorecase="false">
|
||||
</RuleSet>
|
||||
|
||||
<RuleSet name="ParamList" reference = "C#" ignorecase="false">
|
||||
</RuleSet>
|
||||
|
||||
<RuleSet name="RuleDefinition" ignorecase="false">
|
||||
|
||||
</RuleSet>
|
||||
|
||||
</RuleSets>
|
||||
</SyntaxDefinition>
|
||||
|
||||
385
ICSharpCode.TextEditor/Project/Resources/HTML-Mode.xshd
Normal file
@@ -0,0 +1,385 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<!-- syntaxdefinition for HTML 2000 by Mike Krueger -->
|
||||
|
||||
<SyntaxDefinition name = "HTML" extensions = ".htm;.html">
|
||||
|
||||
<Digits name = "Digits" bold = "false" italic = "false" color = "DarkBlue"/>
|
||||
|
||||
<RuleSets>
|
||||
<RuleSet ignorecase = "true">
|
||||
<!-- It is not necessary to define span-delimiting characters as delimiters -->
|
||||
<Delimiters></Delimiters>
|
||||
|
||||
<Span name="Comment" bold="false" italic="false" color="DarkSlateGray" stopateol="false">
|
||||
<Begin><!--</Begin>
|
||||
<End>--></End>
|
||||
</Span>
|
||||
<Span name="ScriptTag" rule="JavaScriptSet" bold="false" italic="false" color="SpringGreen" stopateol="false">
|
||||
<Begin><script></Begin>
|
||||
<End></script></End>
|
||||
</Span>
|
||||
<Span name="JavaScriptTag" rule="JavaScriptSet" bold="false" italic="false" color="SpringGreen" stopateol="false">
|
||||
<Begin><script lang="JavaScript"></Begin>
|
||||
<End></script></End>
|
||||
</Span>
|
||||
<Span name="JScriptTag" bold="false" italic="false" color="SpringGreen" stopateol="false">
|
||||
<Begin><script lang="JScript"></Begin>
|
||||
<End></script></End>
|
||||
</Span>
|
||||
<Span name="VBScriptTag" bold="false" italic="false" color="SpringGreen" stopateol="false">
|
||||
<Begin><script lang="VBScript"></Begin>
|
||||
<End></script></End>
|
||||
</Span>
|
||||
<Span name="UnknownScriptTag" bold="false" italic="false" color="SpringGreen" stopateol="false">
|
||||
<Begin><script@C</Begin>
|
||||
<End></script></End>
|
||||
</Span>
|
||||
<Span name="HtmlTag" rule="HtmlTagSet" bold="false" italic="false" color="DarkMagenta" stopateol="false">
|
||||
<Begin><</Begin>
|
||||
<End>></End>
|
||||
</Span>
|
||||
|
||||
<Span name="EntityReference" rule="EntityReferenceSet" bold="false" italic="false" color="Blue" stopateol="true">
|
||||
<Begin>&</Begin>
|
||||
<End>;</End>
|
||||
</Span>
|
||||
|
||||
</RuleSet>
|
||||
|
||||
<RuleSet name="JavaScriptSet" reference="JavaScript" />
|
||||
|
||||
<RuleSet name="EntityReferenceSet" ignorecase="false">
|
||||
<KeyWords name = "Entities" bold="false" italic="false" color="Green">
|
||||
<Key word = "aacute" />
|
||||
<Key word = "agrave" />
|
||||
<Key word = "acirc" />
|
||||
<Key word = "amp" />
|
||||
<Key word = "atilde" />
|
||||
<Key word = "aring" />
|
||||
<Key word = "auml" />
|
||||
<Key word = "aelig" />
|
||||
<Key word = "ccedil" />
|
||||
<Key word = "copy" />
|
||||
<Key word = "eacute" />
|
||||
<Key word = "egrave" />
|
||||
<Key word = "ecirc" />
|
||||
<Key word = "euml" />
|
||||
<Key word = "iacute" />
|
||||
<Key word = "igrave" />
|
||||
<Key word = "icirc" />
|
||||
<Key word = "iuml" />
|
||||
<Key word = "eth" />
|
||||
<Key word = "gt" />
|
||||
<Key word = "lt" />
|
||||
<Key word = "nbsp" />
|
||||
<Key word = "ntilde" />
|
||||
<Key word = "oacute" />
|
||||
<Key word = "ograve" />
|
||||
<Key word = "ocirc" />
|
||||
<Key word = "otilde" />
|
||||
<Key word = "ouml" />
|
||||
<Key word = "oslash" />
|
||||
<Key word = "quot" />
|
||||
<Key word = "reg" />
|
||||
<Key word = "szlig" />
|
||||
<Key word = "uacute" />
|
||||
<Key word = "ugrave" />
|
||||
<Key word = "ucirc" />
|
||||
<Key word = "uuml" />
|
||||
<Key word = "yacute" />
|
||||
<Key word = "thorn" />
|
||||
<Key word = "trade" />
|
||||
<Key word = "yuml" />
|
||||
</KeyWords>
|
||||
</RuleSet>
|
||||
|
||||
<RuleSet name="HtmlTagSet" ignorecase="false">
|
||||
<Delimiters>/=</Delimiters>
|
||||
|
||||
<Span name="String" bold="false" italic="false" color="Blue" stopateol="true">
|
||||
<Begin>"</Begin>
|
||||
<End>"</End>
|
||||
</Span>
|
||||
|
||||
<Span name="Char" bold="false" italic="false" color="Blue" stopateol="true">
|
||||
<Begin>'</Begin>
|
||||
<End>'</End>
|
||||
</Span>
|
||||
|
||||
<MarkPrevious bold="false" italic="false" color="Red">=</MarkPrevious>
|
||||
|
||||
<KeyWords name="Slash" bold="false" italic="false" color="DarkMagenta">
|
||||
<Key word="/" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name="Assignment" bold="false" italic="false" color="Blue">
|
||||
<Key word="=" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "Tags" bold="false" italic="false" color="DarkMagenta">
|
||||
<Key word = "!DOCTYPE" />
|
||||
<Key word = "A" />
|
||||
<Key word = "ABBR" />
|
||||
<Key word = "ACRONYM" />
|
||||
<Key word = "ADDRESS" />
|
||||
<Key word = "APPLET" />
|
||||
<Key word = "AREA" />
|
||||
<Key word = "B" />
|
||||
<Key word = "BASE" />
|
||||
<Key word = "BASEFONT" />
|
||||
<Key word = "BGSOUND" />
|
||||
<Key word = "BDO" />
|
||||
<Key word = "BIG" />
|
||||
<Key word = "BLINK" />
|
||||
<Key word = "BLOCKQUOTE" />
|
||||
<Key word = "BODY" />
|
||||
<Key word = "BR" />
|
||||
<Key word = "BUTTON" />
|
||||
<Key word = "CAPTION" />
|
||||
<Key word = "CENTER" />
|
||||
<Key word = "CITE" />
|
||||
<Key word = "CODE" />
|
||||
<Key word = "COL" />
|
||||
<Key word = "COLGROUP" />
|
||||
<Key word = "COMMENT" />
|
||||
<Key word = "DD" />
|
||||
<Key word = "DEL" />
|
||||
<Key word = "DFN" />
|
||||
<Key word = "DIR" />
|
||||
<Key word = "DIV" />
|
||||
<Key word = "DL" />
|
||||
<Key word = "DT" />
|
||||
<Key word = "EM" />
|
||||
<Key word = "EMBED" />
|
||||
<Key word = "FIELDSET" />
|
||||
<Key word = "FONT" />
|
||||
<Key word = "FORM" />
|
||||
<Key word = "FRAME" />
|
||||
<Key word = "FRAMESET" />
|
||||
<Key word = "H" />
|
||||
<Key word = "H1" />
|
||||
<Key word = "H2" />
|
||||
<Key word = "H3" />
|
||||
<Key word = "H4" />
|
||||
<Key word = "H5" />
|
||||
<Key word = "H6" />
|
||||
<Key word = "HEAD" />
|
||||
<Key word = "HR" />
|
||||
<Key word = "HTA:APPLICATION" />
|
||||
<Key word = "HTML" />
|
||||
<Key word = "I" />
|
||||
<Key word = "IFRAME" />
|
||||
<Key word = "IMG" />
|
||||
<Key word = "INPUT" />
|
||||
<Key word = "INS" />
|
||||
<Key word = "ISINDEX" />
|
||||
<Key word = "KBD" />
|
||||
<Key word = "LABEL" />
|
||||
<Key word = "LEGEnd" />
|
||||
<Key word = "LI" />
|
||||
<Key word = "LINK" />
|
||||
<Key word = "LISTING" />
|
||||
<Key word = "MAP" />
|
||||
<Key word = "MARQUEE" />
|
||||
<Key word = "MENU" />
|
||||
<Key word = "META" />
|
||||
<Key word = "MULTICOL" />
|
||||
<Key word = "NEXTID" />
|
||||
<Key word = "NOBR" />
|
||||
<Key word = "NOFRAMES" />
|
||||
<Key word = "NOSCRIPT" />
|
||||
<Key word = "OBJECT" />
|
||||
<Key word = "OL" />
|
||||
<Key word = "OPTGROUP" />
|
||||
<Key word = "OPTION" />
|
||||
<Key word = "P" />
|
||||
<Key word = "PARAM" />
|
||||
<Key word = "PLAINTEXT" />
|
||||
<Key word = "PRE" />
|
||||
<Key word = "Q" />
|
||||
<Key word = "S" />
|
||||
<Key word = "SAMP" />
|
||||
<Key word = "SCRIPT" />
|
||||
<Key word = "SELECT" />
|
||||
<Key word = "SERVER" />
|
||||
<Key word = "SMALL" />
|
||||
<Key word = "SOUND" />
|
||||
<Key word = "SPACER" />
|
||||
<Key word = "Span" />
|
||||
<Key word = "STRONG" />
|
||||
<Key word = "STYLE" />
|
||||
<Key word = "SUB" />
|
||||
<Key word = "SUP" />
|
||||
<Key word = "TABLE" />
|
||||
<Key word = "TBODY" />
|
||||
<Key word = "TD" />
|
||||
<Key word = "TEXTAREA" />
|
||||
<Key word = "TEXTFLOW" />
|
||||
<Key word = "TFOOT" />
|
||||
<Key word = "TH" />
|
||||
<Key word = "THEAD" />
|
||||
<Key word = "TITLE" />
|
||||
<Key word = "TR" />
|
||||
<Key word = "TT" />
|
||||
<Key word = "U" />
|
||||
<Key word = "VAR" />
|
||||
<Key word = "WBR" />
|
||||
<Key word = "XMP" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "Attributes" bold="false" italic="false" color="Red">
|
||||
<Key word = "abbr" />
|
||||
<Key word = "accept-charset" />
|
||||
<Key word = "accept" />
|
||||
<Key word = "accesskey" />
|
||||
<Key word = "action" />
|
||||
<Key word = "align" />
|
||||
<Key word = "alink" />
|
||||
<Key word = "alt" />
|
||||
<Key word = "applicationname" />
|
||||
<Key word = "archive" />
|
||||
<Key word = "axis" />
|
||||
<Key word = "background" />
|
||||
<Key word = "behavior" />
|
||||
<Key word = "bgcolor" />
|
||||
<Key word = "bgproperties" />
|
||||
<Key word = "border" />
|
||||
<Key word = "bordercolor" />
|
||||
<Key word = "bordercolordark" />
|
||||
<Key word = "bordercolorligh" />
|
||||
<Key word = "borderstyle" />
|
||||
<Key word = "caption" />
|
||||
<Key word = "cellpadding" />
|
||||
<Key word = "cellspacing" />
|
||||
<Key word = "char" />
|
||||
<Key word = "charoff" />
|
||||
<Key word = "charset" />
|
||||
<Key word = "checked" />
|
||||
<Key word = "cite" />
|
||||
<Key word = "class" />
|
||||
<Key word = "classid" />
|
||||
<Key word = "clear" />
|
||||
<Key word = "code" />
|
||||
<Key word = "codetype" />
|
||||
<Key word = "color" />
|
||||
<Key word = "cols" />
|
||||
<Key word = "colspan" />
|
||||
<Key word = "compact" />
|
||||
<Key word = "content" />
|
||||
<Key word = "coords" />
|
||||
<Key word = "data" />
|
||||
<Key word = "datetime" />
|
||||
<Key word = "declare" />
|
||||
<Key word = "defer" />
|
||||
<Key word = "dir" />
|
||||
<Key word = "direction" />
|
||||
<Key word = "disabled" />
|
||||
<Key word = "dynsrc" />
|
||||
<Key word = "enctype" />
|
||||
<Key word = "face" />
|
||||
<Key word = "for" />
|
||||
<Key word = "frame" />
|
||||
<Key word = "frameborder" />
|
||||
<Key word = "framespacing" />
|
||||
<Key word = "gutter" />
|
||||
<Key word = "headers" />
|
||||
<Key word = "height" />
|
||||
<Key word = "href" />
|
||||
<Key word = "hreflang" />
|
||||
<Key word = "hspace" />
|
||||
<Key word = "http-equiv" />
|
||||
<Key word = "icon" />
|
||||
<Key word = "id" />
|
||||
<Key word = "ismap" />
|
||||
<Key word = "label" />
|
||||
<Key word = "language" />
|
||||
<Key word = "leftmargin" />
|
||||
<Key word = "link" />
|
||||
<Key word = "longdesc" />
|
||||
<Key word = "loop" />
|
||||
<Key word = "lowsrc" />
|
||||
<Key word = "marginheight" />
|
||||
<Key word = "marginwidth" />
|
||||
<Key word = "maximizebutton" />
|
||||
<Key word = "maxlength" />
|
||||
<Key word = "media" />
|
||||
<Key word = "method" />
|
||||
<Key word = "methods" />
|
||||
<Key word = "minimizebutton" />
|
||||
<Key word = "multiple" />
|
||||
<Key word = "name" />
|
||||
<Key word = "nohref" />
|
||||
<Key word = "noresize" />
|
||||
<Key word = "noshade" />
|
||||
<Key word = "nowrap" />
|
||||
<Key word = "object" />
|
||||
<Key word = "onabort" />
|
||||
<Key word = "onblur" />
|
||||
<Key word = "onchange" />
|
||||
<Key word = "onclick" />
|
||||
<Key word = "ondblclick" />
|
||||
<Key word = "onerror" />
|
||||
<Key word = "onfocus" />
|
||||
<Key word = "onkeydown" />
|
||||
<Key word = "onkeypress" />
|
||||
<Key word = "onkeyup" />
|
||||
<Key word = "onload" />
|
||||
<Key word = "onmousedown" />
|
||||
<Key word = "onmousemove" />
|
||||
<Key word = "onmouseout" />
|
||||
<Key word = "onmouseover" />
|
||||
<Key word = "onmouseup" />
|
||||
<Key word = "onreset" />
|
||||
<Key word = "onselect" />
|
||||
<Key word = "onsubmit" />
|
||||
<Key word = "onunload" />
|
||||
<Key word = "profile" />
|
||||
<Key word = "prompt" />
|
||||
<Key word = "readonly" />
|
||||
<Key word = "rel" />
|
||||
<Key word = "rev" />
|
||||
<Key word = "rows" />
|
||||
<Key word = "rowspan" />
|
||||
<Key word = "rules" />
|
||||
<Key word = "runat" />
|
||||
<Key word = "scheme" />
|
||||
<Key word = "scope" />
|
||||
<Key word = "scrollamount" />
|
||||
<Key word = "scrolldelay" />
|
||||
<Key word = "scrolling" />
|
||||
<Key word = "selected" />
|
||||
<Key word = "shape" />
|
||||
<Key word = "showintaskbar" />
|
||||
<Key word = "singleinstance" />
|
||||
<Key word = "size" />
|
||||
<Key word = "span" />
|
||||
<Key word = "src" />
|
||||
<Key word = "standby" />
|
||||
<Key word = "start" />
|
||||
<Key word = "style" />
|
||||
<Key word = "summary" />
|
||||
<Key word = "sysmenu" />
|
||||
<Key word = "tabindex" />
|
||||
<Key word = "target" />
|
||||
<Key word = "text" />
|
||||
<Key word = "title" />
|
||||
<Key word = "topmargin" />
|
||||
<Key word = "type" />
|
||||
<Key word = "urn" />
|
||||
<Key word = "usemap" />
|
||||
<Key word = "valign" />
|
||||
<Key word = "value" />
|
||||
<Key word = "valuetype" />
|
||||
<Key word = "version" />
|
||||
<Key word = "vlink" />
|
||||
<Key word = "vrml" />
|
||||
<Key word = "vspace" />
|
||||
<Key word = "width" />
|
||||
<Key word = "windowstate" />
|
||||
<Key word = "wrap" />
|
||||
</KeyWords>
|
||||
</RuleSet>
|
||||
|
||||
</RuleSets>
|
||||
</SyntaxDefinition>
|
||||
66
ICSharpCode.TextEditor/Project/Resources/JSON.xshd
Normal file
@@ -0,0 +1,66 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<!--
|
||||
JSON syntax highlighting
|
||||
Written by Ezra Altahan
|
||||
Created 07/06/2016 | Updated 16/10/2016
|
||||
Version 1.0
|
||||
|
||||
hello@exr.be
|
||||
https://github.com/ei
|
||||
-->
|
||||
|
||||
<SyntaxDefinition name="JSON" extensions=".json">
|
||||
|
||||
<Environment>
|
||||
<Default color="Black" bgcolor="#FFFFFF"/>
|
||||
<Selection color="Black" bgcolor="#C3C3FF"/>
|
||||
<LineNumbers color="Gray" bgcolor="#FFFFFF"/>
|
||||
<CaretMarker color="#F0F0F1"/>
|
||||
<VRuler color="#E0E0E5"/>
|
||||
|
||||
<FoldLine color="#A0A0A0" bgcolor="#FFFFFF"/>
|
||||
<FoldMarker color="Black" bgcolor="#FFFFFF"/>
|
||||
<SelectedFoldLine color="Black" bgcolor="#FFFFFF"/>
|
||||
|
||||
<EOLMarkers color="#CACAD2"/>
|
||||
<SpaceMarkers color="#B6B6C0"/>
|
||||
<TabMarkers color="#B6B6C0"/>
|
||||
<InvalidLines color="#B6B6C0"/>
|
||||
</Environment>
|
||||
|
||||
<Properties>
|
||||
<Property name="LineComment" value="//"/>
|
||||
<Property name="BlockCommentBegin" value="/*"/>
|
||||
<Property name="BlockCommentEnd" value="*/"/>
|
||||
</Properties>
|
||||
|
||||
<Digits name="Digits" color="#4C9CDA"/>
|
||||
|
||||
<RuleSets>
|
||||
<RuleSet ignorecase="false">
|
||||
|
||||
<Delimiters>&<>~%^*()-+=!|\/{}[]:;"' , ?</Delimiters>
|
||||
|
||||
<Span name="LineComment" stopateol="true" color="Green" bold="false" italic="false">
|
||||
<Begin>//</Begin>
|
||||
</Span>
|
||||
|
||||
<Span name="BlockComment" stopateol="false" color="Green" bold="false" italic="false">
|
||||
<Begin>/*</Begin>
|
||||
<End>*/</End>
|
||||
</Span>
|
||||
|
||||
<Span name="String" stopateol="false" color="#945DAA" bold="false" italic="false" escapecharacter="\">
|
||||
<Begin>"</Begin>
|
||||
<End>"</End>
|
||||
</Span>
|
||||
|
||||
<KeyWords name="Keywords1" color="#CC7832" bold="false">
|
||||
<Key word="null"/>
|
||||
<Key word="true"/>
|
||||
<Key word="false"/>
|
||||
</KeyWords>
|
||||
</RuleSet>
|
||||
</RuleSets>
|
||||
</SyntaxDefinition>
|
||||
180
ICSharpCode.TextEditor/Project/Resources/Java-Mode.xshd
Normal file
@@ -0,0 +1,180 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<!-- syntaxdefinition for Java 2001 by Jonathan Pierce & Mike Krueger -->
|
||||
|
||||
<SyntaxDefinition name = "Java" extensions = ".java">
|
||||
|
||||
<Properties>
|
||||
<Property name="LineComment" value="//"/>
|
||||
</Properties>
|
||||
|
||||
<Digits name = "Digits" bold = "false" italic = "false" color = "DarkBlue"/>
|
||||
|
||||
<RuleSets>
|
||||
<RuleSet ignorecase = "false">
|
||||
<Delimiters>~!%^*()-+=|\#/{}[]:;"'<> , .?</Delimiters>
|
||||
|
||||
<Span name = "LINECOMMENT" rule = "TestSet" bold = "false" italic = "true" color = "SlateGray" stopateol = "true">
|
||||
<Begin>//</Begin>
|
||||
</Span>
|
||||
|
||||
<Span name = "BLOCKCOMMENT" rule = "TestSet" bold = "false" italic = "true" color = "SlateGray" stopateol = "false">
|
||||
<Begin>/*</Begin>
|
||||
<End>*/</End>
|
||||
</Span>
|
||||
|
||||
<Span name = "STRING" bold = "false" italic = "false" color = "Magenta" stopateol = "true" escapecharacter="\">
|
||||
<Begin>"</Begin>
|
||||
<End>"</End>
|
||||
</Span>
|
||||
|
||||
<Span name = "CHAR" bold = "false" italic = "false" color = "Magenta" stopateol = "true" escapecharacter="\">
|
||||
<Begin>'</Begin>
|
||||
<End>'</End>
|
||||
</Span>
|
||||
|
||||
<MarkPrevious bold = "true" italic = "false" color = "MidnightBlue">(</MarkPrevious>
|
||||
|
||||
<KeyWords name = "Punctuation" bold = "false" italic = "false" color = "DarkGreen">
|
||||
<Key word = "?" />
|
||||
<Key word = "," />
|
||||
<Key word = "." />
|
||||
<Key word = "(" />
|
||||
<Key word = ")" />
|
||||
<Key word = "[" />
|
||||
<Key word = "]" />
|
||||
<Key word = "{" />
|
||||
<Key word = "}" />
|
||||
<Key word = "+" />
|
||||
<Key word = "-" />
|
||||
<Key word = "/" />
|
||||
<Key word = "%" />
|
||||
<Key word = "*" />
|
||||
<Key word = "<" />
|
||||
<Key word = ">" />
|
||||
<Key word = "^" />
|
||||
<Key word = "!" />
|
||||
<Key word = "|" />
|
||||
</KeyWords>
|
||||
|
||||
|
||||
|
||||
<KeyWords name = "AccessKeywords" bold="true" italic="false" color="Black">
|
||||
<Key word = "this" />
|
||||
<Key word = "super" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "OperatorKeywords" bold="true" italic="false" color="DarkCyan">
|
||||
<Key word = "new" />
|
||||
<Key word = "instanceof" />
|
||||
<Key word = "true" />
|
||||
<Key word = "false" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "SelectionStatements" bold="true" italic="false" color="Blue">
|
||||
<Key word = "else" />
|
||||
<Key word = "if" />
|
||||
<Key word = "switch" />
|
||||
<Key word = "case" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "IterationStatements" bold="true" italic="false" color="Blue">
|
||||
<Key word = "do" />
|
||||
<Key word = "for" />
|
||||
<Key word = "while" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "JumpStatements" bold="false" italic="false" color="Navy">
|
||||
<Key word = "break" />
|
||||
<Key word = "continue" />
|
||||
<Key word = "default" />
|
||||
<Key word = "goto" />
|
||||
<Key word = "return" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "ExceptionHandlingStatements" bold="true" italic="false" color="Teal">
|
||||
<Key word = "try" />
|
||||
<Key word = "throw" />
|
||||
<Key word = "catch" />
|
||||
<Key word = "finally" />
|
||||
</KeyWords>
|
||||
|
||||
|
||||
<KeyWords name = "ValueTypes" bold="true" italic="false" color="Red">
|
||||
<Key word = "boolean" />
|
||||
<Key word = "double" />
|
||||
<Key word = "int" />
|
||||
<Key word = "short" />
|
||||
<Key word = "long" />
|
||||
<Key word = "float" />
|
||||
<Key word = "byte" />
|
||||
<Key word = "char" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "ReferenceTypes" bold="false" italic="false" color="Red">
|
||||
<Key word = "class" />
|
||||
<Key word = "interface" />
|
||||
<Key word = "object" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "Void" bold="false" italic="false" color="Red">
|
||||
<Key word = "void" />
|
||||
</KeyWords>
|
||||
|
||||
|
||||
<KeyWords name = "Modifiers" bold="false" italic="false" color="Brown">
|
||||
<Key word = "abstract" />
|
||||
<Key word = "const" />
|
||||
<Key word = "static" />
|
||||
<Key word = "final" />
|
||||
<Key word = "native" />
|
||||
<Key word = "extends" />
|
||||
<Key word = "implements" />
|
||||
<Key word = "volatile" />
|
||||
<Key word = "transient" />
|
||||
<Key word = "throws" />
|
||||
<Key word = "strictfp" />
|
||||
<Key word = "synchronized" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "AccessModifiers" bold="true" italic="false" color="Blue">
|
||||
<Key word = "public" />
|
||||
<Key word = "protected" />
|
||||
<Key word = "private" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "NameSpaces" bold="true" italic="false" color="Green">
|
||||
<Key word = "package" />
|
||||
<Key word = "import" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "Literals" bold="true" italic="false" color="Black">
|
||||
<Key word = "null" />
|
||||
</KeyWords>
|
||||
</RuleSet>
|
||||
|
||||
<RuleSet name = "TestSet" ignorecase = "true">
|
||||
<Delimiters>~!%^*()-+=|\#/{}[]:;"'<> , .?</Delimiters>
|
||||
<KeyWords name = "Todoword" bold="true" italic="true" color="Red">
|
||||
<Key word = "TODO" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "JAVADOC comments" bold="true" italic="true" color="DarkGray">
|
||||
<Key word = "@author" />
|
||||
<Key word = "@version" />
|
||||
<Key word = "@param" />
|
||||
<Key word = "@return" />
|
||||
<Key word = "@exception" />
|
||||
<Key word = "@throws" />
|
||||
<Key word = "@see" />
|
||||
<Key word = "@since" />
|
||||
<Key word = "@serial" />
|
||||
<Key word = "@serialField" />
|
||||
<Key word = "@serialData" />
|
||||
<Key word = "@deprecated" />
|
||||
</KeyWords>
|
||||
|
||||
</RuleSet>
|
||||
</RuleSets>
|
||||
|
||||
</SyntaxDefinition>
|
||||
136
ICSharpCode.TextEditor/Project/Resources/JavaScript-Mode.xshd
Normal file
@@ -0,0 +1,136 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- syntaxdefinition for JavaScript 2.0 by Svante Lidman -->
|
||||
|
||||
<SyntaxDefinition name ="JavaScript" extensions = ".js">
|
||||
|
||||
<Properties>
|
||||
<Property name="LineComment" value="//"/>
|
||||
</Properties>
|
||||
|
||||
<Digits name ="Digits" bold ="false" italic ="false" color ="DarkBlue"/>
|
||||
|
||||
<RuleSets>
|
||||
<RuleSet ignorecase = "false">
|
||||
<Delimiters>=!><+-/*%&|^~.}{,;][?:</Delimiters>
|
||||
|
||||
<Span name ="LineComment" bold ="false" italic ="false" color ="DarkSlateGray" stopateol ="true">
|
||||
<Begin>//</Begin>
|
||||
</Span>
|
||||
|
||||
<Span name ="BlockComment" bold ="false" italic ="false" color ="DarkSlateGray" stopateol ="false">
|
||||
<Begin>/*</Begin>
|
||||
<End>*/</End>
|
||||
</Span>
|
||||
|
||||
<Span name ="String" bold ="false" italic ="false" color ="Sienna" stopateol ="false" escapecharacter="\">
|
||||
<Begin>"</Begin>
|
||||
<End>"</End>
|
||||
</Span>
|
||||
|
||||
<Span name = "Character" bold = "false" italic = "false" color = "Sienna" stopateol = "true" escapecharacter="\">
|
||||
<Begin>'</Begin>
|
||||
<End>'</End>
|
||||
</Span>
|
||||
|
||||
<KeyWords name ="JavaScriptKeyWords" bold="false" italic = "false" color = "Blue">
|
||||
<Key word = "break" />
|
||||
<Key word = "continue" />
|
||||
<Key word = "delete" />
|
||||
<Key word = "else" />
|
||||
<Key word = "for" />
|
||||
<Key word = "function" />
|
||||
<Key word = "if" />
|
||||
<Key word = "in" />
|
||||
<Key word = "new" />
|
||||
<Key word = "return" />
|
||||
<Key word = "this" />
|
||||
<Key word = "typeof" />
|
||||
<Key word = "var" />
|
||||
<Key word = "void" />
|
||||
<Key word = "while" />
|
||||
<Key word = "with" />
|
||||
<!--ECMAScript keywords-->
|
||||
<!-- Reserved for future use
|
||||
(some are already used in some Javascript Engines)
|
||||
-->
|
||||
<Key word = "abstract" />
|
||||
<Key word = "boolean" />
|
||||
<Key word = "byte" />
|
||||
<Key word = "case" />
|
||||
<Key word = "catch" />
|
||||
<Key word = "char" />
|
||||
<Key word = "class" />
|
||||
<Key word = "const" />
|
||||
<Key word = "debugger" />
|
||||
<Key word = "default" />
|
||||
<Key word = "do" />
|
||||
<Key word = "double" />
|
||||
<Key word = "enum" />
|
||||
<Key word = "export" />
|
||||
<Key word = "extends" />
|
||||
<Key word = "final" />
|
||||
<Key word = "finally" />
|
||||
<Key word = "float" />
|
||||
<Key word = "goto" />
|
||||
<Key word = "implements" />
|
||||
<Key word = "import" />
|
||||
<Key word = "instanceof" />
|
||||
<Key word = "int" />
|
||||
<Key word = "interface" />
|
||||
<Key word = "long" />
|
||||
<Key word = "native" />
|
||||
<Key word = "package" />
|
||||
<Key word = "private" />
|
||||
<Key word = "protected" />
|
||||
<Key word = "public" />
|
||||
<Key word = "short" />
|
||||
<Key word = "static" />
|
||||
<Key word = "super" />
|
||||
<Key word = "switch" />
|
||||
<Key word = "synchronized" />
|
||||
<Key word = "throw" />
|
||||
<Key word = "throws" />
|
||||
<Key word = "transient" />
|
||||
<Key word = "try" />
|
||||
<Key word = "volatile" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name ="JavaScriptIntrinsics" bold="false" italic = "false" color = "Blue">
|
||||
<Key word = "Array" />
|
||||
<Key word = "Boolean" />
|
||||
<Key word = "Date" />
|
||||
<Key word = "Function" />
|
||||
<Key word = "Global" />
|
||||
<Key word = "Math" />
|
||||
<Key word = "Number" />
|
||||
<Key word = "Object" />
|
||||
<Key word = "RegExp" />
|
||||
<Key word = "String" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name ="JavaScriptLiterals" bold="false" italic = "false" color = "Blue">
|
||||
<Key word = "false" />
|
||||
<Key word = "null" />
|
||||
<Key word = "true" />
|
||||
<Key word = "NaN" />
|
||||
<Key word = "Infinity" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name ="JavaScriptLiterals" bold="false" italic = "false" color = "Blue">
|
||||
<Key word = "" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name ="JavaScriptGlobalFunctions" bold="false" italic = "false" color = "Blue">
|
||||
<Key word = "eval" />
|
||||
<Key word = "parseInt" />
|
||||
<Key word = "parseFloat" />
|
||||
<Key word = "escape" />
|
||||
<Key word = "unescape" />
|
||||
<Key word = "isNaN" />
|
||||
<Key word = "isFinite" />
|
||||
</KeyWords>
|
||||
</RuleSet>
|
||||
</RuleSets>
|
||||
|
||||
</SyntaxDefinition>
|
||||
|
||||
101
ICSharpCode.TextEditor/Project/Resources/Lua-Mode.xshd
Normal file
@@ -0,0 +1,101 @@
|
||||
<?xml version="1.0"?>
|
||||
<SyntaxDefinition name = "Lua"
|
||||
extensions = ".lua">
|
||||
<Properties>
|
||||
<Property name="LineComment"
|
||||
value="--"/>
|
||||
</Properties>
|
||||
|
||||
<Digits name = "Digits"
|
||||
bold = "false"
|
||||
italic = "false"
|
||||
color = "Blue"/>
|
||||
|
||||
<RuleSets>
|
||||
<RuleSet ignorecase="false">
|
||||
<Delimiters>~@$%^&*()+=|\[]{};"'<> ,#: </Delimiters>
|
||||
|
||||
<Span name = "BlockComment"
|
||||
bold = "false"
|
||||
italic = "false"
|
||||
color = "Green"
|
||||
stopateol = "false">
|
||||
<Begin>--[[</Begin>
|
||||
<End>]]</End>
|
||||
</Span>
|
||||
|
||||
<Span name = "LineComment"
|
||||
bold = "false"
|
||||
italic = "false"
|
||||
color = "Green"
|
||||
stopateol = "true">
|
||||
<Begin>--</Begin>
|
||||
</Span>
|
||||
|
||||
<Span name = "String"
|
||||
bold = "false"
|
||||
italic = "false"
|
||||
color = "Red"
|
||||
stopateol = "true">
|
||||
<Begin>"</Begin>
|
||||
<End>"</End>
|
||||
</Span>
|
||||
|
||||
<KeyWords name = "Punctuation"
|
||||
bold = "false"
|
||||
italic = "false"
|
||||
color = "DarkGreen">
|
||||
<Key word = "?" />
|
||||
<Key word = "," />
|
||||
<Key word = "." />
|
||||
<Key word = ";" />
|
||||
<Key word = "(" />
|
||||
<Key word = ")" />
|
||||
<Key word = "[" />
|
||||
<Key word = "]" />
|
||||
<Key word = "{" />
|
||||
<Key word = "}" />
|
||||
<Key word = "+" />
|
||||
<Key word = "-" />
|
||||
<Key word = "/" />
|
||||
<Key word = "%" />
|
||||
<Key word = "*" />
|
||||
<Key word = "<" />
|
||||
<Key word = ">" />
|
||||
<Key word = "^" />
|
||||
<Key word = "=" />
|
||||
<Key word = "~" />
|
||||
<Key word = "!" />
|
||||
<Key word = "|" />
|
||||
<Key word = "&" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "Keywords"
|
||||
bold="true"
|
||||
italic="false"
|
||||
color="Blue">
|
||||
<Key word = "and" />
|
||||
<Key word = "break" />
|
||||
<Key word = "do" />
|
||||
<Key word = "else" />
|
||||
<Key word = "elseif" />
|
||||
<Key word = "end" />
|
||||
<Key word = "false" />
|
||||
<Key word = "for" />
|
||||
<Key word = "function" />
|
||||
<Key word = "if" />
|
||||
<Key word = "in" />
|
||||
<Key word = "local" />
|
||||
<Key word = "nil" />
|
||||
<Key word = "not" />
|
||||
<Key word = "or" />
|
||||
<Key word = "repeat" />
|
||||
<Key word = "return" />
|
||||
<Key word = "then" />
|
||||
<Key word = "true" />
|
||||
<Key word = "until" />
|
||||
<Key word = "while" />
|
||||
</KeyWords>
|
||||
</RuleSet>
|
||||
</RuleSets>
|
||||
</SyntaxDefinition>
|
||||
296
ICSharpCode.TextEditor/Project/Resources/Mode.xsd
Normal file
@@ -0,0 +1,296 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" >
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>
|
||||
This schema defines the syntax for mode definitions in SharpDevelop.
|
||||
The schema can be simplified quite a bit but it does the job as is.
|
||||
|
||||
|
||||
If you are using this file as a reference it is probably easiest to scroll to
|
||||
the botton to find the definition of the root element called SyntaxDefinition and
|
||||
then unwind the different type definitions and refernces.
|
||||
|
||||
Note on coloring:
|
||||
Many tags define how some symbol should be colored. If a specific symbol
|
||||
can not be matched onto either a Span definition, Keyword, or a Digit/Number it
|
||||
will be rendered in the current default color. Which is the default color of the
|
||||
current span or the default color of the mode as a whole if no span has been entered.
|
||||
</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
|
||||
<!-- Defines the default rendering of the mode -->
|
||||
<xsd:complexType name="EnvironmentEntry">
|
||||
<xsd:attribute name="bold" type="xsd:boolean" />
|
||||
<xsd:attribute name="italic" type="xsd:boolean" />
|
||||
<xsd:attribute name="color" type="xsd:string" />
|
||||
<xsd:attribute name="bgcolor" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
|
||||
<xsd:complexType name="CustomEnvironmentEntry">
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
<xsd:attribute name="bold" type="xsd:boolean" />
|
||||
<xsd:attribute name="italic" type="xsd:boolean" />
|
||||
<xsd:attribute name="color" type="xsd:string" />
|
||||
<xsd:attribute name="bgcolor" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
|
||||
<!-- The environment tag defines the coloring of various attributes in SharpDevelop -->
|
||||
<xsd:complexType name="Environment">
|
||||
|
||||
<xsd:choice minOccurs="0" maxOccurs="unbounded">
|
||||
<xsd:element name="Default" type="EnvironmentEntry" minOccurs="0" maxOccurs="1" />
|
||||
<xsd:element name="Selection" type="EnvironmentEntry" minOccurs="0" maxOccurs="1"/>
|
||||
<xsd:element name="VRuler" type="EnvironmentEntry" minOccurs="0" maxOccurs="1"/>
|
||||
<xsd:element name="InvalidLines" type="EnvironmentEntry" minOccurs="0" maxOccurs="1"/>
|
||||
<xsd:element name="CaretMarker" type="EnvironmentEntry" minOccurs="0" maxOccurs="1"/>
|
||||
<xsd:element name="CaretLine" type="EnvironmentEntry" minOccurs="0" maxOccurs="1"/>
|
||||
|
||||
<xsd:element name="LineNumbers" type="EnvironmentEntry" minOccurs="0" maxOccurs="1"/>
|
||||
|
||||
<xsd:element name="FoldLine" type="EnvironmentEntry" minOccurs="0" maxOccurs="1"/>
|
||||
<xsd:element name="FoldMarker" type="EnvironmentEntry" minOccurs="0" maxOccurs="1"/>
|
||||
<xsd:element name="SelectedFoldLine" type="EnvironmentEntry" minOccurs="0" maxOccurs="1"/>
|
||||
|
||||
<xsd:element name="EOLMarkers" type="EnvironmentEntry" minOccurs="0" maxOccurs="1"/>
|
||||
<xsd:element name="SpaceMarkers" type="EnvironmentEntry" minOccurs="0" maxOccurs="1"/>
|
||||
<xsd:element name="TabMarkers" type="EnvironmentEntry" minOccurs="0" maxOccurs="1"/>
|
||||
|
||||
<xsd:element name="Custom" type="CustomEnvironmentEntry" minOccurs="0" maxOccurs="unbounded"/>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
|
||||
<xsd:complexType name="Properties">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Property" type="Property" minOccurs="0" maxOccurs="unbounded"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
|
||||
<xsd:complexType name="Property">
|
||||
<!-- The actual KeyWord, typically reserved words or symbols in a programming language -->
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
<xsd:attribute name="value" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
|
||||
<!-- The Digits tag defines the color for rendering Digits-->
|
||||
<xsd:complexType name="Digits">
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
<xsd:attribute name="bold" type="xsd:boolean" />
|
||||
<xsd:attribute name="italic" type="xsd:boolean" />
|
||||
<xsd:attribute name="color" type="xsd:string" />
|
||||
<xsd:attribute name="bgcolor" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
|
||||
<!-- Defines the delimiting characters of the syntax, e.g., the characters that, "break up" a line
|
||||
into separate symbols, typically key words. It is not necessary, or desirable to include the
|
||||
characters that denot the start or end of a span. Space and Tab are implicitly defined as delimeters
|
||||
and they don't need to be includeded explicitly (this will probably be changed at some future time).-->
|
||||
<xsd:complexType name="Delimiters">
|
||||
<xsd:simpleContent>
|
||||
<xsd:extension base="xsd:string">
|
||||
</xsd:extension>
|
||||
</xsd:simpleContent>
|
||||
</xsd:complexType>
|
||||
|
||||
<!-- The beginning symbol of a Span -->
|
||||
<xsd:complexType name="Begin">
|
||||
<xsd:simpleContent>
|
||||
<xsd:extension base="xsd:string">
|
||||
<xsd:attribute name="singleword" type="xsd:boolean" />
|
||||
<xsd:attribute name="startofline" type="xsd:boolean" />
|
||||
<!-- The default rendering style for the Begin symbol. If not specified
|
||||
the defaul rendering style for the span will be used. -->
|
||||
<xsd:attribute name="bold" type="xsd:boolean" />
|
||||
<xsd:attribute name="italic" type="xsd:boolean" />
|
||||
<xsd:attribute name="color" type="xsd:string" />
|
||||
<xsd:attribute name="bgcolor" type="xsd:string" />
|
||||
</xsd:extension>
|
||||
</xsd:simpleContent>
|
||||
</xsd:complexType>
|
||||
|
||||
<!-- The end symbol of a Span -->
|
||||
<xsd:complexType name="End">
|
||||
<xsd:simpleContent>
|
||||
<xsd:extension base="xsd:string">
|
||||
<xsd:attribute name="singleword" type="xsd:boolean" />
|
||||
<!-- The default rendering style for the End symbol. If not specified
|
||||
the defaul rendering style for the span will be used. -->
|
||||
<xsd:attribute name="bold" type="xsd:boolean" />
|
||||
<xsd:attribute name="italic" type="xsd:boolean" />
|
||||
<xsd:attribute name="color" type="xsd:string" />
|
||||
<xsd:attribute name="bgcolor" type="xsd:string" />
|
||||
</xsd:extension>
|
||||
</xsd:simpleContent>
|
||||
</xsd:complexType>
|
||||
|
||||
<xsd:complexType name="Span">
|
||||
<xsd:sequence>
|
||||
<!-- Defines the symbol that indicates the beginning of the span. -->
|
||||
<xsd:element name="Begin" type="Begin" />
|
||||
<!-- Defines the symbol that indicates the end of the span. May be omitted for
|
||||
one-line spans. -->
|
||||
<xsd:element name="End" minOccurs="0" type="End" />
|
||||
</xsd:sequence>
|
||||
<!-- The name of the span definition -->
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
<!-- Defines the rule set that is applicable in the Span. May be omitted. -->
|
||||
<xsd:attribute name="rule" type="xsd:string" />
|
||||
<!-- Defines wether the Span should terminate automatically at the end of line. Typical examples
|
||||
include one-line comments such as // in C++ or REM in Windows .Bat files. -->
|
||||
<xsd:attribute name="stopateol" type="xsd:boolean" />
|
||||
|
||||
<!-- OBSOLUTE: Defines whether C-style escape sequences using \ are applicable or not in the span. -->
|
||||
<xsd:attribute name="noescapesequences" type="xsd:boolean" />
|
||||
|
||||
<!-- defines the escape character -->
|
||||
<xsd:attribute name="escapecharacter" type="xsd:string" />
|
||||
|
||||
<!-- The default rendering style for the span -->
|
||||
<xsd:attribute name="bold" type="xsd:boolean" />
|
||||
<xsd:attribute name="italic" type="xsd:boolean" />
|
||||
<xsd:attribute name="color" type="xsd:string" />
|
||||
<xsd:attribute name="bgcolor" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
|
||||
<xsd:complexType name="MarkPrevious">
|
||||
<xsd:simpleContent>
|
||||
<xsd:extension base="xsd:string">
|
||||
<!-- Svante Lidman, looking in the code it is a bit unclear what the intent is here... -->
|
||||
<xsd:attribute name="markmarker" type="xsd:boolean" />
|
||||
<!-- The rendering style to be used -->
|
||||
<xsd:attribute name="bold" type="xsd:boolean" />
|
||||
<xsd:attribute name="italic" type="xsd:boolean" />
|
||||
<xsd:attribute name="color" type="xsd:string" />
|
||||
<xsd:attribute name="bgcolor" type="xsd:string" />
|
||||
</xsd:extension>
|
||||
</xsd:simpleContent>
|
||||
</xsd:complexType>
|
||||
|
||||
<!-- Allows you to define the coloring of the symbol that follows a specified symbol -->
|
||||
<xsd:complexType name="MarkFollowing">
|
||||
<xsd:simpleContent>
|
||||
<xsd:extension base="xsd:string">
|
||||
<!-- Svante Lidman, looking in the code it is a bit unclear what the intent is here... -->
|
||||
<xsd:attribute name="markmarker" type="xsd:boolean" />
|
||||
<!-- The rendering style to be used -->
|
||||
<xsd:attribute name="bold" type="xsd:boolean" />
|
||||
<xsd:attribute name="italic" type="xsd:boolean" />
|
||||
<xsd:attribute name="color" type="xsd:string" />
|
||||
<xsd:attribute name="bgcolor" type="xsd:string" />
|
||||
</xsd:extension>
|
||||
</xsd:simpleContent>
|
||||
</xsd:complexType>
|
||||
|
||||
<xsd:complexType name="Key">
|
||||
<!-- The actual KeyWord, typically reserved words or symbols in a programming language -->
|
||||
<xsd:attribute name="word" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
|
||||
|
||||
<!-- A grouping of keywords that sholuld be colored the same way -->
|
||||
<xsd:complexType name="KeyWords">
|
||||
<xsd:sequence>
|
||||
<!-- allow groups with 0 keywords: this simplifies the syntax highlighting editor -->
|
||||
<!-- A KeyWord -->
|
||||
<xsd:element name="Key" type="Key" minOccurs="0" maxOccurs="unbounded">
|
||||
</xsd:element>
|
||||
</xsd:sequence>
|
||||
<!-- The name of the KeyWord group -->
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
<!-- The rendering style of the KeyWord group -->
|
||||
<xsd:attribute name="bold" type="xsd:boolean" />
|
||||
<xsd:attribute name="italic" type="xsd:boolean" />
|
||||
<xsd:attribute name="color" type="xsd:string" />
|
||||
<xsd:attribute name="bgcolor" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
|
||||
<xsd:complexType name="RuleSet">
|
||||
<xsd:sequence>
|
||||
<!-- Defines the delimiting characters of the syntax, e.g., the characters that, "break up" a line
|
||||
into separate symbols, typically key words. It is not necessary, or desirable to include the
|
||||
characters that denot the start or end of a span. Space and Tab are implicitly defined as delimeters
|
||||
and they don't need to be includeded explicitly (this will probably be changed at some future time).-->
|
||||
<xsd:element name="Delimiters" type="Delimiters" minOccurs="0" maxOccurs="1">
|
||||
</xsd:element>
|
||||
<!-- A Span tag defines a scope, or what can be seen as a separate parsing context where a different set of
|
||||
highlighting rules are applicable compared to the text where the span is found.
|
||||
Examples of spans include:
|
||||
- A string in a language as C
|
||||
- A <script> tag in Html
|
||||
- The internals of a tag in XML (between < and >).
|
||||
A span can have a rule set associated with it that defines the highlighting rules that are applicable
|
||||
in the span. -->
|
||||
<xsd:element name="Span" type="Span" minOccurs="0" maxOccurs="unbounded">
|
||||
</xsd:element>
|
||||
<!-- The MarkPrevious tag allows you to define the coloring of the item that preceeds a specific
|
||||
symbol. An example of where this comes in handy is when coloring the contents of an XML-tag,
|
||||
in particular the attributes and attribute names. The following definition:
|
||||
<MarkPrevious bold="false" italic="false" color="Red">=</MarkPrevious>
|
||||
will make teh highlighter color words that are followed by an = to be colored in Red.
|
||||
You can see this in this file if you view it with the default XML-mode in SharpDevelop. -->
|
||||
<xsd:element name="MarkPrevious" type="MarkPrevious" minOccurs="0" maxOccurs="unbounded">
|
||||
</xsd:element>
|
||||
<!-- The MarkFollowing tag works similarly as the MarkPrevious tag but relates to the coloring
|
||||
of the symbol that follows the specified symbol. -->
|
||||
<xsd:element name="MarkFollowing" type="MarkFollowing" minOccurs="0" maxOccurs="unbounded">
|
||||
</xsd:element>
|
||||
<!-- Defines a group of keywords that should be colored the same way -->
|
||||
<xsd:element name="KeyWords" type="KeyWords" minOccurs="0" maxOccurs="unbounded">
|
||||
</xsd:element>
|
||||
</xsd:sequence>
|
||||
<!-- The name of the RuleSet. Used when you refer to the RuleSet in the rule attribute of a Span tag.
|
||||
Each mode file should have a rule definition without a defined name. This denotes the default rule
|
||||
set for the mode. -->
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
<!-- Allows you to use another mode, defined in another file as a RuleSet. For an example see the
|
||||
use of the JavaScript mode from the HTML-mode. -->
|
||||
<xsd:attribute name="reference" type="xsd:string" />
|
||||
<!-- Defines whether case is significant for matching keywords in the mode. -->
|
||||
<xsd:attribute name="ignorecase" type="xsd:boolean" />
|
||||
<!-- OBSOLETE: noescapesequences -->
|
||||
<xsd:attribute name="noescapesequences" type="xsd:boolean" />
|
||||
<!-- defines the escape character -->
|
||||
<xsd:attribute name="escapecharacter" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
|
||||
<!-- The RuleSets tag is just a grouping of the set of RuleSets for a mode. -->
|
||||
<xsd:complexType name="RuleSets">
|
||||
<xsd:sequence minOccurs="0" maxOccurs="unbounded">
|
||||
<!-- Any number of RuleSet tag can be defined in a mode -->
|
||||
<xsd:element name="RuleSet" type="RuleSet" minOccurs="1" maxOccurs="unbounded">
|
||||
</xsd:element>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
|
||||
<!-- SyntaxDefinition is the root-element in a mode definition file -->
|
||||
<xsd:element name="SyntaxDefinition">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<!-- The Environment tag defines colors, for various standard elements in the SharpDevelop GUI, if
|
||||
not given the default values are used. -->
|
||||
<xsd:element name="Environment" type="Environment" minOccurs="0" maxOccurs="1"/>
|
||||
|
||||
<!-- The Properties section defines properties which are bound to the highlighting -->
|
||||
<xsd:element name="Properties" type="Properties" minOccurs="0" maxOccurs="1" />
|
||||
|
||||
<!-- The Digits tag defines the color for rendering Digits-->
|
||||
<xsd:element name="Digits" type="Digits" minOccurs="0" maxOccurs="1"/>
|
||||
|
||||
<!-- The RuleSets tag defines the rule sets that are used in the mode. Note that all modes are defined in
|
||||
a flat structture even if they are used recursively. For an example of a mode that uses
|
||||
multiple rule sets see the XML-mode. There is a top level rule-set and and another rule-set
|
||||
that handles highligting within a tag, i.e., between < and >. -->
|
||||
<xsd:element name="RuleSets" type="RuleSets" />
|
||||
</xsd:sequence>
|
||||
<!-- The name of the mode. This is used when you, in the defintion of a RuleSet refers to another
|
||||
mode. I.e., one that is defined in an external file. For an example of this see the HTML-Mode that
|
||||
uses the JavaScript-mode this way. -->
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
<!-- The file extensions that the mode is applicable for. Extensions must be written with lower case and
|
||||
should include the ., as in .txt. If several extensions are applicable they should be separeated with | -->
|
||||
<xsd:attribute name="extensions" type="xsd:string" />
|
||||
<!-- Name of a syntax mode where rulesets, spans, keywords and other settings are imported from -->
|
||||
<xsd:attribute name="extends" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
|
||||
</xsd:schema>
|
||||
198
ICSharpCode.TextEditor/Project/Resources/PHP-Mode.xshd
Normal file
@@ -0,0 +1,198 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- syntaxdefinition for PHP 2001 by Chad Smith & Mike Krueger -->
|
||||
|
||||
<SyntaxDefinition name ="PHP" extensions = ".php">
|
||||
|
||||
<Digits name ="Digits" bold ="false" italic ="false" color ="DarkBlue"/>
|
||||
|
||||
<RuleSets>
|
||||
<RuleSet ignorecase = "false">
|
||||
<Delimiters>~!%^*()-+=|\#/{}[]:;"'<> , .?</Delimiters>
|
||||
|
||||
<Span name ="PreprocessorDirectives" bold="false" italic = "false" color = "Green" stopateol ="true">
|
||||
<Begin>#</Begin>
|
||||
</Span>
|
||||
|
||||
<Span name ="LINECOMMENT" rule = "DocumentSet" bold ="false" italic ="true" color ="SlateGray" stopateol ="true">
|
||||
<Begin>///</Begin>
|
||||
</Span>
|
||||
|
||||
<Span name ="LINECOMMENT" rule = "TestSet" bold ="false" italic ="true" color ="SlateGray" stopateol ="true">
|
||||
<Begin>//@!/@</Begin>
|
||||
</Span>
|
||||
|
||||
<Span name ="BLOCKCOMMENT" rule = "TestSet" bold ="false" italic ="true" color ="SlateGray" stopateol ="false">
|
||||
<Begin>/*</Begin>
|
||||
<End>*/</End>
|
||||
</Span>
|
||||
|
||||
<Span name ="STRING" bold ="false" italic ="false" color ="Magenta" stopateol ="true" escapecharacter="\">
|
||||
<Begin>"</Begin>
|
||||
<End>"</End>
|
||||
</Span>
|
||||
|
||||
<Span name ="MORELINEDSTRING" bold ="false" italic ="false" color ="Magenta" stopateol ="false" escapecharacter="\">
|
||||
<Begin>@@"</Begin>
|
||||
<End>"</End>
|
||||
</Span>
|
||||
|
||||
<Span name ="CHAR" bold ="false" italic ="false" color ="Magenta" stopateol ="true" escapecharacter="\">
|
||||
<Begin>'</Begin>
|
||||
<End>'</End>
|
||||
</Span>
|
||||
|
||||
<MarkPrevious bold ="true" italic ="false" color ="MidnightBlue">(</MarkPrevious>
|
||||
|
||||
<KeyWords name ="Punctuation" bold ="false" italic ="false" color ="DarkGreen">
|
||||
<Key word = "?" />
|
||||
<Key word = "," />
|
||||
<Key word = "." />
|
||||
<Key word = "(" />
|
||||
<Key word = ")" />
|
||||
<Key word = "[" />
|
||||
<Key word = "]" />
|
||||
<Key word = "{" />
|
||||
<Key word = "}" />
|
||||
<Key word = "+" />
|
||||
<Key word = "-" />
|
||||
<Key word = "/" />
|
||||
<Key word = "%" />
|
||||
<Key word = "*" />
|
||||
<Key word = "<" />
|
||||
<Key word = ">" />
|
||||
<Key word = "^" />
|
||||
<Key word = "!" />
|
||||
<Key word = "|" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name ="AccessKeywords" bold="true" italic = "false" color = "Black">
|
||||
<Key word = "global" />
|
||||
<Key word = "my" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name ="OperatorKeywords" bold="true" italic = "false" color = "DarkCyan">
|
||||
<Key word = "and" />
|
||||
<Key word = "or" />
|
||||
<Key word = "new" />
|
||||
<Key word = "xor" />
|
||||
<Key word = "true" />
|
||||
<Key word = "false" />
|
||||
</KeyWords>
|
||||
|
||||
|
||||
<KeyWords name ="SelectionStatements" bold="true" italic = "false" color = "Blue">
|
||||
<Key word = "else" />
|
||||
<Key word = "if" />
|
||||
<Key word = "switch" />
|
||||
<Key word = "case" />
|
||||
<Key word = "endif" />
|
||||
<Key word = "elseif" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name ="IterationStatements" bold="true" italic = "false" color = "Blue">
|
||||
<Key word = "do" />
|
||||
<Key word = "for" />
|
||||
<Key word = "foreach" />
|
||||
<Key word = "while" />
|
||||
<Key word = "endwhile" />
|
||||
<Key word = "exit" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name ="JumpStatements" bold="false" italic = "false" color = "Navy">
|
||||
<Key word = "break" />
|
||||
<Key word = "continue" />
|
||||
<Key word = "default" />
|
||||
<Key word = "goto" />
|
||||
<Key word = "return" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name ="ExceptionHandlingStatements" bold="true" italic = "false" color = "Teal">
|
||||
<Key word = "require" />
|
||||
<Key word = "include" />
|
||||
<Key word = "function" />
|
||||
<Key word = "return" />
|
||||
<Key word = "old_function" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name ="ValueTypes" bold="true" italic = "false" color = "Red">
|
||||
<Key word = "int" />
|
||||
<Key word = "integer" />
|
||||
<Key word = "real" />
|
||||
<Key word = "double" />
|
||||
<Key word = "float" />
|
||||
<Key word = "string" />
|
||||
<Key word = "array" />
|
||||
<Key word = "object" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name ="ReferenceTypes" bold="false" italic = "false" color = "Red">
|
||||
<Key word = "class" />
|
||||
<Key word = "new" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name ="Void" bold="false" italic = "false" color = "Red">
|
||||
<Key word = "void" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name ="AccessModifiers" bold="true" italic = "false" color = "Blue">
|
||||
<Key word = "public" />
|
||||
<Key word = "private" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name ="GetSet" bold="false" italic = "false" color = "SaddleBrown">
|
||||
<Key word = "get" />
|
||||
<Key word = "set" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name ="Literals" bold="true" italic = "false" color = "Black">
|
||||
<Key word = "null" />
|
||||
<Key word = "value" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name ="Statements" bold="true" italic = "false" color = "DarkBlue">
|
||||
<Key word = "var" />
|
||||
<Key word = "extends" />
|
||||
<Key word = "list" />
|
||||
<Key word = "each" />
|
||||
<Key word = "PHP_SELF" />
|
||||
</KeyWords>
|
||||
</RuleSet>
|
||||
|
||||
<RuleSet name ="TestSet" ignorecase = "true">
|
||||
<Delimiters>~!@%^*()-+=|\#/{}[]:;"'<> , .?</Delimiters>
|
||||
<KeyWords name ="Testword" bold="true" italic = "true" color = "Red">
|
||||
<Key word = "TODO" />
|
||||
</KeyWords>
|
||||
</RuleSet>
|
||||
|
||||
<RuleSet name ="DocumentSet" ignorecase = "false">
|
||||
<Delimiters>~!@%^*()-+=|\#/{}[]:;"'<> , .?</Delimiters>
|
||||
|
||||
<Span name ="XMLTAG" rule = "XMLDocuSet" bold ="false" italic ="true" color ="Gray" stopateol ="true">
|
||||
<Begin><</Begin>
|
||||
<End>></End>
|
||||
</Span>
|
||||
|
||||
<KeyWords name ="Testword" bold="true" italic = "true" color = "Red">
|
||||
<Key word = "TODO" />
|
||||
</KeyWords>
|
||||
</RuleSet>
|
||||
|
||||
<RuleSet name ="XMLDocuSet" ignorecase = "false">
|
||||
<Delimiters>~!@%^*()-+=|\#/{}[]:;"'<> , .?</Delimiters>
|
||||
|
||||
<Span name ="STRING" bold ="true" italic ="true" color ="Silver" stopateol ="true">
|
||||
<Begin>"</Begin>
|
||||
<End>"</End>
|
||||
</Span>
|
||||
|
||||
|
||||
<KeyWords name ="Punctuation" bold ="true" italic ="true" color ="Gray">
|
||||
<Key word = "/" />
|
||||
<Key word = "|" />
|
||||
<Key word = "=" />
|
||||
</KeyWords>
|
||||
</RuleSet>
|
||||
</RuleSets>
|
||||
</SyntaxDefinition>
|
||||
|
||||
37
ICSharpCode.TextEditor/Project/Resources/Patch-Mode.xshd
Normal file
@@ -0,0 +1,37 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<SyntaxDefinition name = "Patch" extensions = ".patch;.diff">
|
||||
<!--<Digits name = "Digits" bold = "false" italic = "false" color = "DarkBlue"/>-->
|
||||
|
||||
<RuleSets>
|
||||
<RuleSet ignorecase = "false">
|
||||
<Delimiters>~!%^*()-+=|\#/{}[]:;"'<> , .?</Delimiters>
|
||||
|
||||
<Span name = "IndexLine" bold="true" italic="false" color="Green" stopateol = "true">
|
||||
<Begin>Index: </Begin>
|
||||
</Span>
|
||||
<Span name = "IndexUnderline" bold="false" italic="false" color="DarkRed" stopateol = "true">
|
||||
<Begin>==</Begin>
|
||||
</Span>
|
||||
<Span name = "IndexOldFile" bold="false" italic="false" color="DarkRed" stopateol = "true">
|
||||
<Begin>---</Begin>
|
||||
</Span>
|
||||
<Span name = "IndexNewFile" bold="false" italic="false" color="DarkRed" stopateol = "true">
|
||||
<Begin>+++</Begin>
|
||||
</Span>
|
||||
<Span name = "LocationMarker" bold="false" italic="false" color="Purple" stopateol = "true">
|
||||
<Begin>@@</Begin>
|
||||
</Span>
|
||||
<Span name = "RemovedLine" bold="false" italic="false" color="#339966" stopateol = "true">
|
||||
<Begin>-</Begin>
|
||||
</Span>
|
||||
<Span name = "AddedLine" bold="false" italic="false" color="Navy" stopateol = "true" >
|
||||
<Begin>+</Begin>
|
||||
</Span>
|
||||
<Span name = "NormalLine" bold="false" italic="false" color="SystemColors.WindowText" stopateol = "true" >
|
||||
<Begin> </Begin>
|
||||
</Span>
|
||||
</RuleSet>
|
||||
</RuleSets>
|
||||
</SyntaxDefinition>
|
||||
|
||||
BIN
ICSharpCode.TextEditor/Project/Resources/RightArrow.cur
Normal file
|
After Width: | Height: | Size: 326 B |
200
ICSharpCode.TextEditor/Project/Resources/SQL-Mode.xshd
Normal file
@@ -0,0 +1,200 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
Copyright 2005-2009 Paul Kohler (http://pksoftware.net/MiniSqlQuery/). All rights reserved.
|
||||
This source code is made available under the terms of the Microsoft Public License (Ms-PL)
|
||||
http://minisqlquery.codeplex.com/license
|
||||
-->
|
||||
<SyntaxDefinition name = "SQL"
|
||||
extensions = ".sql">
|
||||
<Properties>
|
||||
<Property name="LineComment"
|
||||
value="--"/>
|
||||
</Properties>
|
||||
<Digits name = "Digits"
|
||||
bold = "true"
|
||||
italic = "false"
|
||||
color = "Blue"/>
|
||||
<RuleSets>
|
||||
<RuleSet ignorecase = "true">
|
||||
<Delimiters>&<>~!%^*()-+=|\#/{}[]:;"' , .?</Delimiters>
|
||||
<Span name="String"
|
||||
bold="false"
|
||||
italic="false"
|
||||
color="Red"
|
||||
stopateol="false">
|
||||
<Begin>'</Begin>
|
||||
<End>'</End>
|
||||
</Span>
|
||||
<Span name = "LineComment"
|
||||
bold = "false"
|
||||
italic = "false"
|
||||
color = "Green"
|
||||
stopateol = "true">
|
||||
<Begin>--</Begin>
|
||||
</Span>
|
||||
<Span name = "BlockComment"
|
||||
bold = "false"
|
||||
italic = "false"
|
||||
color = "Green"
|
||||
stopateol = "false">
|
||||
<Begin>/*</Begin>
|
||||
<End>*/</End>
|
||||
</Span>
|
||||
<KeyWords name="JoinKeywords"
|
||||
bold="true"
|
||||
italic="false"
|
||||
color="Purple">
|
||||
<Key word="INNER" />
|
||||
<Key word="JOIN" />
|
||||
<Key word="LEFT" />
|
||||
<Key word="RIGHT" />
|
||||
<Key word="OUTER" />
|
||||
<Key word="UNION" />
|
||||
</KeyWords>
|
||||
<KeyWords name="AliasKeywords"
|
||||
bold="false"
|
||||
italic="false"
|
||||
color="Maroon">
|
||||
<Key word="AS" />
|
||||
</KeyWords>
|
||||
<KeyWords name="ComparisonKeywords"
|
||||
bold="true"
|
||||
italic="false"
|
||||
color="Navy">
|
||||
<Key word="AND" />
|
||||
<Key word="OR" />
|
||||
<Key word="LIKE" />
|
||||
</KeyWords>
|
||||
<KeyWords name="SpecializedKeywords"
|
||||
bold="true"
|
||||
italic="false"
|
||||
color="Gray">
|
||||
<Key word="TOP" />
|
||||
<Key word="LIMIT" />
|
||||
<Key word="OPENDATASOURCE" />
|
||||
<Key word="GO" />
|
||||
</KeyWords>
|
||||
<KeyWords name="DestructiveKeywords"
|
||||
bold="true"
|
||||
italic="false"
|
||||
color="Red">
|
||||
<Key word="DROP" />
|
||||
<Key word="DELETE" />
|
||||
<Key word="TRUNCATE" />
|
||||
</KeyWords>
|
||||
<KeyWords name="SqlKeywordsBold"
|
||||
bold="true"
|
||||
italic="false"
|
||||
color="Blue">
|
||||
<Key word="BEGIN" />
|
||||
<Key word="END" />
|
||||
<Key word="EXEC" />
|
||||
<Key word="CREATE" />
|
||||
<Key word="COMMIT" />
|
||||
<Key word="RAISERROR" />
|
||||
<Key word="ROLLBACK" />
|
||||
<Key word="TRAN" />
|
||||
<Key word="TRANSACTION" />
|
||||
<Key word="USE" />
|
||||
<Key word="USER" />
|
||||
<Key word="VIEW" />
|
||||
</KeyWords>
|
||||
<KeyWords name="SqlKeywordsNormal"
|
||||
bold="false"
|
||||
italic="false"
|
||||
color="Blue">
|
||||
<Key word="ADD" />
|
||||
<Key word="ALL" />
|
||||
<Key word="ANY" />
|
||||
<Key word="ASC" />
|
||||
<Key word="BETWEEN" />
|
||||
<Key word="BREAK" />
|
||||
<Key word="BY" />
|
||||
<Key word="CASCADE" />
|
||||
<Key word="CASE" />
|
||||
<Key word="CHECK" />
|
||||
<Key word="CHECKPOINT" />
|
||||
<Key word="CLOSE" />
|
||||
<Key word="COALESCE" />
|
||||
<Key word="COLLATE" />
|
||||
<Key word="COLUMN" />
|
||||
<Key word="COMPUTE" />
|
||||
<Key word="CONSTRAINT" />
|
||||
<Key word="CONTAINS" />
|
||||
<Key word="CONTINUE" />
|
||||
<Key word="CONVERT" />
|
||||
<Key word="CROSS" />
|
||||
<Key word="CURSOR" />
|
||||
<Key word="DECLARE" />
|
||||
<Key word="DEFAULT" />
|
||||
<Key word="DESC" />
|
||||
<Key word="DISTINCT" />
|
||||
<Key word="DOUBLE" />
|
||||
<Key word="ELSE" />
|
||||
<Key word="ESCAPE" />
|
||||
<Key word="EXCEPT" />
|
||||
<Key word="EXECUTE" />
|
||||
<Key word="EXISTS" />
|
||||
<Key word="EXIT" />
|
||||
<Key word="FETCH" />
|
||||
<Key word="FOR" />
|
||||
<Key word="FROM" />
|
||||
<Key word="FULL" />
|
||||
<Key word="FUNCTION" />
|
||||
<Key word="GOTO" />
|
||||
<Key word="GROUP" />
|
||||
<Key word="HAVING" />
|
||||
<Key word="IDENTITY" />
|
||||
<Key word="IDENTITY_INSERT" />
|
||||
<Key word="IDENTITYCOL" />
|
||||
<Key word="IF" />
|
||||
<Key word="IN" />
|
||||
<Key word="INSERT" />
|
||||
<Key word="INTO" />
|
||||
<Key word="IS" />
|
||||
<Key word="KEY" />
|
||||
<Key word="NOCHECK" />
|
||||
<Key word="NOT" />
|
||||
<Key word="NULL" />
|
||||
<Key word="NULLIF" />
|
||||
<Key word="OF" />
|
||||
<Key word="OFF" />
|
||||
<Key word="OFFSETS" />
|
||||
<Key word="ON" />
|
||||
<Key word="OPEN" />
|
||||
<Key word="ORDER" />
|
||||
<Key word="OVER" />
|
||||
<Key word="PRECISION" />
|
||||
<Key word="PROC" />
|
||||
<Key word="PROCEDURE" />
|
||||
<Key word="PUBLIC" />
|
||||
<Key word="READ" />
|
||||
<Key word="READTEXT" />
|
||||
<Key word="REFERENCES" />
|
||||
<Key word="RESTORE" />
|
||||
<Key word="RESTRICT" />
|
||||
<Key word="RETURN" />
|
||||
<Key word="ROWCOUNT" />
|
||||
<Key word="RULE" />
|
||||
<Key word="SAVE" />
|
||||
<Key word="SELECT" />
|
||||
<Key word="SET" />
|
||||
<Key word="SETUSER" />
|
||||
<Key word="SOME" />
|
||||
<Key word="TABLE" />
|
||||
<Key word="THEN" />
|
||||
<Key word="TO" />
|
||||
<Key word="TRIGGER" />
|
||||
<Key word="UNIQUE" />
|
||||
<Key word="UPDATE" />
|
||||
<Key word="VALUES" />
|
||||
<Key word="VARYING" />
|
||||
<Key word="WAITFOR" />
|
||||
<Key word="WHEN" />
|
||||
<Key word="WHERE" />
|
||||
<Key word="WHILE" />
|
||||
<Key word="WITH" />
|
||||
</KeyWords>
|
||||
</RuleSet>
|
||||
</RuleSets>
|
||||
</SyntaxDefinition>
|
||||
61
ICSharpCode.TextEditor/Project/Resources/SyntaxModes.xml
Normal file
@@ -0,0 +1,61 @@
|
||||
<SyntaxModes version="1.0">
|
||||
<Mode file = "ASPX.xshd"
|
||||
name = "ASP/XHTML"
|
||||
extensions = ".asp;.aspx;.asax;.asmx"/>
|
||||
|
||||
<Mode file = "BAT-Mode.xshd"
|
||||
name = "BAT"
|
||||
extensions = ".bat"/>
|
||||
|
||||
<Mode file = "Boo.xshd"
|
||||
name = "Boo"
|
||||
extensions = ".boo"/>
|
||||
|
||||
<Mode file = "Coco-Mode.xshd"
|
||||
name = "Coco"
|
||||
extensions = ".atg"/>
|
||||
|
||||
<Mode file = "CPP-Mode.xshd"
|
||||
name = "C++.NET"
|
||||
extensions = ".c;.h;.cc;.C;.cpp;.hpp"/>
|
||||
|
||||
<Mode file = "CSharp-Mode.xshd"
|
||||
name = "C#"
|
||||
extensions = ".cs"/>
|
||||
|
||||
<Mode file = "HTML-Mode.xshd"
|
||||
name = "HTML"
|
||||
extensions = ".htm;.html"/>
|
||||
|
||||
<Mode file = "Java-Mode.xshd"
|
||||
name = "Java"
|
||||
extensions = ".java"/>
|
||||
|
||||
<Mode file = "JavaScript-Mode.xshd"
|
||||
name = "JavaScript"
|
||||
extensions = ".js"/>
|
||||
|
||||
<Mode file = "JSON.xshd"
|
||||
name = "JSON"
|
||||
extensions = ".json"/>
|
||||
|
||||
<Mode file = "Patch-Mode.xshd"
|
||||
name = "Patch"
|
||||
extensions = ".patch;.diff"/>
|
||||
|
||||
<Mode file = "PHP-Mode.xshd"
|
||||
name = "PHP"
|
||||
extensions = ".php"/>
|
||||
|
||||
<Mode file = "Tex-Mode.xshd"
|
||||
name = "TeX"
|
||||
extensions = ".tex"/>
|
||||
|
||||
<Mode file = "VBNET-Mode.xshd"
|
||||
name = "VBNET"
|
||||
extensions = ".vb"/>
|
||||
|
||||
<Mode file = "XML-Mode.xshd"
|
||||
name = "XML"
|
||||
extensions = ".xml;.xsl;.xslt;.xsd;.manifest;.config;.addin;.xshd;.wxs;.wxi;.wxl;.proj;.csproj;.vbproj;.ilproj;.booproj;.build;.xfrm;.targets;.xaml;.xpt;.xft;.map;.wsdl;.disco"/>
|
||||
</SyntaxModes>
|
||||
@@ -0,0 +1,20 @@
|
||||
Lua syntax highlighting based on http://github.com/nano-byte/ICSharpCode.TextEditor
|
||||
SQL syntax highlighting based on http://www.codeproject.com/Articles/111969/Extending-ICSharpCode-TextEditor-Syntax-Highlighti
|
||||
|
||||
All supported:
|
||||
ASP/XHTML
|
||||
BAT
|
||||
Boo
|
||||
Coco
|
||||
C++.NET
|
||||
C#
|
||||
HTML
|
||||
Java
|
||||
JavaScript
|
||||
Patch
|
||||
PHP
|
||||
TeX
|
||||
VBNET
|
||||
XML
|
||||
Lua
|
||||
SQL
|
||||
@@ -0,0 +1,8 @@
|
||||
<SyntaxModes version="1.0">
|
||||
<Mode file = "Lua-Mode.xshd"
|
||||
name = "Lua"
|
||||
extensions = ".lua"/>
|
||||
<Mode file = "SQL-Mode.xshd"
|
||||
name = "SQL"
|
||||
extensions = ".sql"/>
|
||||
</SyntaxModes>
|
||||
108
ICSharpCode.TextEditor/Project/Resources/Tex-Mode.xshd
Normal file
@@ -0,0 +1,108 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- syntaxdefinition for TeX document 2001 by Mike Krueger (gleaned from Jedit) -->
|
||||
|
||||
<SyntaxDefinition name = "TeX" extensions = ".tex">
|
||||
|
||||
<Digits name = "Digits" bold = "false" italic = "false" color = "Black"/>
|
||||
|
||||
<RuleSets>
|
||||
<RuleSet ignorecase = "false">
|
||||
<Delimiters>&~!@%^*()-+=|\#/{}[]:;"'<> , .?</Delimiters>
|
||||
|
||||
<Span name = "LineComment" bold = "false" italic = "true" color = "SlateGray" stopateol = "true">
|
||||
<Begin>%</Begin>
|
||||
</Span>
|
||||
|
||||
<Span name = "MathMode" rule = "MathMode" bold = "false" italic = "false" color = "Black" stopateol = "false">
|
||||
<Begin>$$</Begin>
|
||||
<End>$$</End>
|
||||
</Span>
|
||||
<Span name = "LatexMathMode" rule = "MathMode" bold = "false" italic = "false" color = "Black" stopateol = "false">
|
||||
<Begin>\[</Begin>
|
||||
<End>\]</End>
|
||||
</Span>
|
||||
|
||||
<!-- \... commands -->
|
||||
<MarkFollowing markmarker ="true" bold = "true" italic = "false" color = "MidnightBlue">\</MarkFollowing>
|
||||
|
||||
<!-- some commands must be handled specially -->
|
||||
<KeyWords name = "Keyword1" bold = "false" italic = "false" color = "Blue">
|
||||
<Key word = "\$" />
|
||||
<Key word = "\\" />
|
||||
<Key word = "\%" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "KeyWords2" bold="true" italic="false" color="Green">
|
||||
<Key word = ")" />
|
||||
<Key word = ")" />
|
||||
<Key word = "{" />
|
||||
<Key word = "}" />
|
||||
<Key word = "[" />
|
||||
<Key word = "]" />
|
||||
<Key word = "=" />
|
||||
<Key word = "!" />
|
||||
<Key word = "+" />
|
||||
<Key word = "-" />
|
||||
<Key word = "/" />
|
||||
<Key word = "*" />
|
||||
<Key word = ">" />
|
||||
<Key word = "<" />
|
||||
<Key word = "&" />
|
||||
<Key word = "|" />
|
||||
<Key word = "^" />
|
||||
<Key word = "~" />
|
||||
<Key word = "." />
|
||||
<Key word = "," />
|
||||
<Key word = ";" />
|
||||
<Key word = "?" />
|
||||
<Key word = ":" />
|
||||
<Key word = "'" />
|
||||
<!-- <Key word = """ />-->
|
||||
<Key word = "`" />
|
||||
</KeyWords>
|
||||
</RuleSet>
|
||||
|
||||
<RuleSet name = "MathMode" ignorecase = "false">
|
||||
<Delimiters>&~!@%^*()-+=|\#/{}[]:;"'<> , .?</Delimiters>
|
||||
|
||||
|
||||
<Span name = "LineComment" bold = "false" italic = "true" color = "SlateGray" stopateol = "true">
|
||||
<Begin>%</Begin>
|
||||
</Span>
|
||||
|
||||
<!-- \... commands -->
|
||||
<MarkFollowing markmarker ="true" bold = "true" italic = "false" color = "MidnightBlue">\</MarkFollowing>
|
||||
|
||||
<KeyWords name = "KeyWords2" bold="true" italic="false" color="Green">
|
||||
<Key word = ")" />
|
||||
<Key word = ")" />
|
||||
<Key word = "{" />
|
||||
<Key word = "}" />
|
||||
<Key word = "[" />
|
||||
<Key word = "]" />
|
||||
<Key word = "=" />
|
||||
<Key word = "!" />
|
||||
<Key word = "+" />
|
||||
<Key word = "-" />
|
||||
<Key word = "/" />
|
||||
<Key word = "*" />
|
||||
<Key word = ">" />
|
||||
<Key word = "<" />
|
||||
<Key word = "&" />
|
||||
<Key word = "|" />
|
||||
<Key word = "^" />
|
||||
<Key word = "~" />
|
||||
<Key word = "." />
|
||||
<Key word = "," />
|
||||
<Key word = ";" />
|
||||
<Key word = "?" />
|
||||
<Key word = ":" />
|
||||
<Key word = "'" />
|
||||
<!-- <Key word = """ />-->
|
||||
<Key word = "`" />
|
||||
</KeyWords>
|
||||
</RuleSet>
|
||||
</RuleSets>
|
||||
|
||||
</SyntaxDefinition>
|
||||
|
||||
BIN
ICSharpCode.TextEditor/Project/Resources/TextEditorControl.bmp
Normal file
|
After Width: | Height: | Size: 824 B |
265
ICSharpCode.TextEditor/Project/Resources/VBNET-Mode.xshd
Normal file
@@ -0,0 +1,265 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<!-- Syntaxdefinition for VB.NET, v0.1 Rev 1 by Christian Holm -->
|
||||
<!-- Updated 2005 by Daniel Grunwald for VB.NET 2.0 -->
|
||||
|
||||
<SyntaxDefinition name = "VBNET" extensions = ".vb">
|
||||
|
||||
<Properties>
|
||||
<Property name="LineComment" value="'"/>
|
||||
</Properties>
|
||||
|
||||
<Digits name = "Digits" bold = "false" italic = "false" color = "Black"/>
|
||||
|
||||
<RuleSets>
|
||||
<RuleSet ignorecase = "true">
|
||||
|
||||
<Delimiters>~!@%^*()-+=|\#/{}[]:;"'<>,.?</Delimiters>
|
||||
|
||||
<Span name = "STRING" bold = "false" italic = "false" color = "Black" stopateol = "true" escapecharacter='"'>
|
||||
<Begin>"</Begin>
|
||||
<End>"</End>
|
||||
</Span>
|
||||
<!--
|
||||
<Span name = "LINECOMMENT" rule = "DocumentSet" bold = "false" italic = "false" color = "Green" stopateol = "true">
|
||||
<Begin>'</Begin>
|
||||
</Span>
|
||||
|
||||
<Span name = "LINECOMMENT" rule = "DocumentSet" bold = "false" italic = "false" color = "Green" stopateol = "true">
|
||||
<Begin>REM</Begin>
|
||||
</Span>
|
||||
-->
|
||||
<Span name = "PREPROCESSORDIRECTIVE" rule = "PreprocessorSet" bold = "false" italic = "false" color = "Maroon" stopateol = "true">
|
||||
<Begin startofline="true">#</Begin>
|
||||
</Span>
|
||||
|
||||
<Span name = "DATELITERAL" bold = "false" italic = "false" color = "Blue" stopateol = "true">
|
||||
<Begin startofline="false">#</Begin>
|
||||
<End>#</End>
|
||||
</Span>
|
||||
|
||||
<Span name = "LINECOMMENT" bold = "false" italic = "false" color = "Green" stopateol = "true">
|
||||
<Begin>'</Begin>
|
||||
</Span>
|
||||
|
||||
<Span name = "LINECOMMENT" bold = "false" italic = "false" color = "Green" stopateol = "true">
|
||||
<Begin singleword="true">REM@C</Begin>
|
||||
</Span>
|
||||
|
||||
<KeyWords name = "DataTypes" bold="false" italic="false" color="#6F002F">
|
||||
<Key word = "Boolean" />
|
||||
<Key word = "Byte" />
|
||||
<Key word = "Char" />
|
||||
<Key word = "Date" />
|
||||
<Key word = "Decimal" />
|
||||
<Key word = "Double" />
|
||||
<Key word = "Integer" />
|
||||
<Key word = "Long" />
|
||||
<Key word = "Object" />
|
||||
<Key word = "SByte" />
|
||||
<Key word = "Short" />
|
||||
<Key word = "Single" />
|
||||
<Key word = "String" />
|
||||
<Key word = "UInteger" />
|
||||
<Key word = "ULong" />
|
||||
<Key word = "UShort" />
|
||||
<Key word = "Variant" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "Operators" bold="false" italic="false" color="#8515EA">
|
||||
<Key word = "AddressOf" />
|
||||
<Key word = "And" />
|
||||
<Key word = "AndAlso" />
|
||||
<Key word = "Is" />
|
||||
<Key word = "IsNot" />
|
||||
<Key word = "Like" />
|
||||
<Key word = "Mod" />
|
||||
<Key word = "New" />
|
||||
<Key word = "Not" />
|
||||
<Key word = "Or" />
|
||||
<Key word = "OrElse" />
|
||||
<Key word = "Xor" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "Constants" bold="false" italic="false" color="Blue">
|
||||
<Key word = "False" />
|
||||
<Key word = "Me" />
|
||||
<Key word = "MyBase" />
|
||||
<Key word = "MyClass" />
|
||||
<Key word = "Nothing" />
|
||||
<Key word = "True" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "CommonKeywords" bold="false" italic="false" color="Blue">
|
||||
<Key word = "As" />
|
||||
<Key word = "Of" />
|
||||
<Key word = "New" />
|
||||
<Key word = "End" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "FunctionKeywords" bold="false" italic="false" color="Blue">
|
||||
<Key word = "CBool" />
|
||||
<Key word = "CByte" />
|
||||
<Key word = "CChar" />
|
||||
<Key word = "CDate" />
|
||||
<Key word = "CDec" />
|
||||
<Key word = "CDbl" />
|
||||
<Key word = "CInt" />
|
||||
<Key word = "CLng" />
|
||||
<Key word = "CObj" />
|
||||
<Key word = "CSByte" />
|
||||
<Key word = "CShort" />
|
||||
<Key word = "CSng" />
|
||||
<Key word = "CStr" />
|
||||
<Key word = "CType" />
|
||||
<Key word = "CUInt" />
|
||||
<Key word = "CULng" />
|
||||
<Key word = "CUShort" />
|
||||
<Key word = "DirectCast" />
|
||||
<Key word = "GetType" />
|
||||
<Key word = "TryCast" />
|
||||
<Key word = "TypeOf" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "ParamModifiers" bold="false" italic="false" color="Blue">
|
||||
<Key word = "ByRef" />
|
||||
<Key word = "ByVal" />
|
||||
<Key word = "Optional" />
|
||||
<Key word = "ParamArray" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "AccessModifiers" bold="false" italic="false" color="Blue">
|
||||
<Key word = "Friend" />
|
||||
<Key word = "Private" />
|
||||
<Key word = "Protected" />
|
||||
<Key word = "Public" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "OtherModifiers" bold="false" italic="false" color="Blue">
|
||||
<Key word = "Const" />
|
||||
<Key word = "Custom" />
|
||||
<Key word = "Default" />
|
||||
<Key word = "Global" />
|
||||
<Key word = "MustInherit" />
|
||||
<Key word = "MustOverride" />
|
||||
<Key word = "Narrowing" />
|
||||
<Key word = "NotInheritable" />
|
||||
<Key word = "NotOverridable" />
|
||||
<Key word = "Overloads" />
|
||||
<Key word = "Overridable" />
|
||||
<Key word = "Overrides" />
|
||||
<Key word = "Partial" />
|
||||
<Key word = "ReadOnly" />
|
||||
<Key word = "Shadows" />
|
||||
<Key word = "Shared" />
|
||||
<Key word = "Static" />
|
||||
<Key word = "Widening" />
|
||||
<Key word = "WithEvents" />
|
||||
<Key word = "WriteOnly" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "Statements" bold="false" italic="false" color="Blue">
|
||||
<Key word = "Throw" />
|
||||
<Key word = "Stop" />
|
||||
<Key word = "Return" />
|
||||
<Key word = "Resume" />
|
||||
<Key word = "AddHandler" />
|
||||
<Key word = "RemoveHandler" />
|
||||
<Key word = "RaiseEvent" />
|
||||
<Key word = "Option" />
|
||||
<Key word = "Let" />
|
||||
<Key word = "GoTo" />
|
||||
<Key word = "GoSub" />
|
||||
<Key word = "Call" />
|
||||
<Key word = "Continue" />
|
||||
<Key word = "Dim" />
|
||||
<Key word = "ReDim" />
|
||||
<Key word = "Erase" />
|
||||
<Key word = "On" />
|
||||
<Key word = "Error" />
|
||||
<Key word = "Exit" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "GlobalConstructs" bold="false" italic="false" color="Blue">
|
||||
<Key word = "Namespace" />
|
||||
<Key word = "Class" />
|
||||
<Key word = "Imports" />
|
||||
<Key word = "Implements" />
|
||||
<Key word = "Inherits" />
|
||||
<Key word = "Interface" />
|
||||
<Key word = "Delegate" />
|
||||
<Key word = "Module" />
|
||||
<Key word = "Structure" />
|
||||
<Key word = "Enum" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "TypeLevelConstructs" bold="false" italic="false" color="Blue">
|
||||
<Key word = "Sub" />
|
||||
<Key word = "Function" />
|
||||
<Key word = "Handles" />
|
||||
<Key word = "Declare" />
|
||||
<Key word = "Lib" />
|
||||
<Key word = "Alias" />
|
||||
<Key word = "Get" />
|
||||
<Key word = "Set" />
|
||||
<Key word = "Property" />
|
||||
<Key word = "Operator" />
|
||||
<Key word = "Event" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "Constructs" bold="false" italic="false" color="Blue">
|
||||
<Key word = "SyncLock" />
|
||||
<Key word = "Using" />
|
||||
<Key word = "With" />
|
||||
<Key word = "Do" />
|
||||
<Key word = "While" />
|
||||
<Key word = "Loop" />
|
||||
<Key word = "Wend" />
|
||||
|
||||
<Key word = "Try" />
|
||||
<Key word = "Catch" />
|
||||
<Key word = "When" />
|
||||
<Key word = "Finally" />
|
||||
|
||||
<Key word = "If" />
|
||||
<Key word = "Then" />
|
||||
<Key word = "Else" />
|
||||
<Key word = "ElseIf" />
|
||||
<Key word = "EndIf" />
|
||||
|
||||
<Key word = "For" />
|
||||
<Key word = "To" />
|
||||
<Key word = "Step" />
|
||||
<Key word = "Each" />
|
||||
<Key word = "In" />
|
||||
<Key word = "Next" />
|
||||
|
||||
<Key word = "Select" />
|
||||
<Key word = "Case" />
|
||||
</KeyWords>
|
||||
|
||||
<KeyWords name = "ContextKeywords" bold="false" italic="false" color="Blue">
|
||||
<Key word = "Ansi" />
|
||||
<Key word = "Auto" />
|
||||
<Key word = "Unicode" />
|
||||
<Key word = "Preserve" />
|
||||
<Key word = "Until" />
|
||||
</KeyWords>
|
||||
</RuleSet>
|
||||
|
||||
<RuleSet name = "PreprocessorSet" ignorecase = "true">
|
||||
<Delimiters>~!@%^*()-+=|\#/{}[]:;"'<>,.?</Delimiters>
|
||||
|
||||
<KeyWords name = "PreProcessor" bold="true" italic="false" color="Maroon">
|
||||
<Key word = "Const" />
|
||||
<Key word = "If" />
|
||||
<Key word = "ElseIf" />
|
||||
<Key word = "Else" />
|
||||
<Key word = "End" />
|
||||
<Key word = "ExternalSource" />
|
||||
<Key word = "Region" />
|
||||
<Key word = "ExternalChecksum" />
|
||||
</KeyWords>
|
||||
</RuleSet>
|
||||
</RuleSets>
|
||||
</SyntaxDefinition>
|
||||
60
ICSharpCode.TextEditor/Project/Resources/XML-Mode.xshd
Normal file
@@ -0,0 +1,60 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!-- syntaxdefinition for XML 2000 by Mike Krueger -->
|
||||
<SyntaxDefinition name="XML" extensions=".xml;.xsl;.xslt;.xsd;.manifest;.config;.addin;.xshd;.wxs;.wxi;.wxl;.proj;.csproj;.vbproj;.ilproj;.booproj;.build;.xfrm;.targets;.xaml;.xpt;.xft;.map;.wsdl;.disco">
|
||||
|
||||
<Properties>
|
||||
<Property name="BlockCommentBegin" value="<!--"/>
|
||||
<Property name="BlockCommentEnd" value="-->"/>
|
||||
</Properties>
|
||||
<Digits name="Digits" bold="false" italic="false" color="DarkBlue" />
|
||||
<RuleSets>
|
||||
<RuleSet ignorecase="false">
|
||||
<!-- It is not necessary to define span-delimiting characters as delimiters -->
|
||||
<Delimiters></Delimiters>
|
||||
|
||||
<Span name="Comment" bold="false" italic="false" color="Green" stopateol="false">
|
||||
<Begin><!--</Begin>
|
||||
<End>--></End>
|
||||
</Span>
|
||||
<Span name="CDataSection" bold="false" italic="false" color="Blue" stopateol="false">
|
||||
<Begin><![CDATA[</Begin>
|
||||
<End>]]></End>
|
||||
</Span>
|
||||
<Span name="DocTypeSection" bold="false" italic="false" color="Blue" stopateol="false">
|
||||
<Begin><!DOCTYPE</Begin>
|
||||
<End>></End>
|
||||
</Span>
|
||||
<Span name="XmlDecl" bold="false" italic="false" color="Blue" stopateol="false">
|
||||
<Begin><?</Begin>
|
||||
<End>?></End>
|
||||
</Span>
|
||||
<Span name="XmlTag" rule="XmlTagSet" bold="false" italic="false" color="DarkMagenta" stopateol="false">
|
||||
<Begin><</Begin>
|
||||
<End>></End>
|
||||
</Span>
|
||||
<Span name="EntityReference" bold="false" italic="false" color="Blue" stopateol="true">
|
||||
<Begin>&</Begin>
|
||||
<End>;</End>
|
||||
</Span>
|
||||
</RuleSet>
|
||||
|
||||
<RuleSet name="XmlTagSet" ignorecase="false">
|
||||
<Delimiters>/=</Delimiters>
|
||||
<Span name="String" bold="false" italic="false" color="Blue" stopateol="true">
|
||||
<Begin>"</Begin>
|
||||
<End>"</End>
|
||||
</Span>
|
||||
<Span name="Char" bold="false" italic="false" color="Blue" stopateol="true">
|
||||
<Begin>'</Begin>
|
||||
<End>'</End>
|
||||
</Span>
|
||||
<MarkPrevious bold="false" italic="false" color="Red">=</MarkPrevious>
|
||||
<KeyWords name="Slash" bold="false" italic="false" color="DarkMagenta">
|
||||
<Key word="/" />
|
||||
</KeyWords>
|
||||
<KeyWords name="Assignment" bold="false" italic="false" color="Blue">
|
||||
<Key word="=" />
|
||||
</KeyWords>
|
||||
</RuleSet>
|
||||
</RuleSets>
|
||||
</SyntaxDefinition>
|
||||
BIN
ICSharpCode.TextEditor/Project/Resources/cut.png
Normal file
|
After Width: | Height: | Size: 648 B |
BIN
ICSharpCode.TextEditor/Project/Resources/htmlpage.png
Normal file
|
After Width: | Height: | Size: 614 B |
BIN
ICSharpCode.TextEditor/Project/Resources/sc_cancel.png
Normal file
|
After Width: | Height: | Size: 510 B |
BIN
ICSharpCode.TextEditor/Project/Resources/sc_copy.png
Normal file
|
After Width: | Height: | Size: 600 B |
BIN
ICSharpCode.TextEditor/Project/Resources/sc_cut.png
Normal file
|
After Width: | Height: | Size: 802 B |
BIN
ICSharpCode.TextEditor/Project/Resources/sc_linearrowend.png
Normal file
|
After Width: | Height: | Size: 539 B |
BIN
ICSharpCode.TextEditor/Project/Resources/sc_paste.png
Normal file
|
After Width: | Height: | Size: 793 B |
BIN
ICSharpCode.TextEditor/Project/Resources/sc_redo.png
Normal file
|
After Width: | Height: | Size: 894 B |
BIN
ICSharpCode.TextEditor/Project/Resources/sc_searchdialog.png
Normal file
|
After Width: | Height: | Size: 680 B |
BIN
ICSharpCode.TextEditor/Project/Resources/sc_selectall.png
Normal file
|
After Width: | Height: | Size: 595 B |
BIN
ICSharpCode.TextEditor/Project/Resources/sc_undo.png
Normal file
|
After Width: | Height: | Size: 888 B |
BIN
ICSharpCode.TextEditor/Project/Resources/splitdocument.png
Normal file
|
After Width: | Height: | Size: 614 B |