Browse Source

add support for VB colors

pull/26/head
Siegfried Pammer 13 years ago
parent
commit
37233cbb60
  1. 8
      src/AddIns/DisplayBindings/AvalonEdit.AddIn/Src/Options/HighlightingOptions.xaml.cs
  2. 2
      src/Libraries/AvalonEdit/ICSharpCode.AvalonEdit/Highlighting/Resources/CSharp-Mode.xshd

8
src/AddIns/DisplayBindings/AvalonEdit.AddIn/Src/Options/HighlightingOptions.xaml.cs

@ -567,6 +567,14 @@ namespace ICSharpCode.AvalonEdit.AddIn.Options
{ "Keyword", "C#.GetSetAddRemove" }, { "Keyword", "C#.GetSetAddRemove" },
{ "Keyword", "C#.TrueFalse" }, { "Keyword", "C#.TrueFalse" },
{ "Keyword", "C#.TypeKeywords" }, { "Keyword", "C#.TypeKeywords" },
{ "Keyword", "VBNET.DateLiteral" },
{ "Keyword", "VBNET.Preprocessor" },
{ "Keyword", "VBNET.DataTypes" },
{ "Keyword", "VBNET.Operators" },
{ "Keyword", "VBNET.Constants" },
{ "Keyword", "VBNET.Keywords" },
{ "Keyword", "VBNET.FunctionKeywords" },
{ "Keyword", "VBNET.ContextKeywords" },
{ "Line Numbers", CustomizableHighlightingColorizer.LineNumbers }, { "Line Numbers", CustomizableHighlightingColorizer.LineNumbers },
{ "MarkerFormatDefinition/HighlightedReference", "" }, { "MarkerFormatDefinition/HighlightedReference", "" },
{ "Number", "C#.NumberLiteral" }, { "Number", "C#.NumberLiteral" },

2
src/Libraries/AvalonEdit/ICSharpCode.AvalonEdit/Highlighting/Resources/CSharp-Mode.xshd

@ -43,7 +43,7 @@
<Span color="Preprocessor"> <Span color="Preprocessor">
<Begin>\#</Begin> <Begin>\#</Begin>
<RuleSet name="PreprocessorSet"> <RuleSet name="PreprocessorSet">
<Span> <!-- preprocessor directives that allow comments --> <Span> <!-- preprocessor directives that allows comments -->
<Begin fontWeight="bold"> <Begin fontWeight="bold">
(define|undef|if|elif|else|endif|line)\b (define|undef|if|elif|else|endif|line)\b
</Begin> </Begin>

Loading…
Cancel
Save