Skip to content

Commit 01481ff

Browse files
committed
done with C++, python, C# and CSS
1 parent 42b23b7 commit 01481ff

5 files changed

Lines changed: 26 additions & 26 deletions

File tree

ICSharpCode.AvalonEdit/Highlighting/Resources/CPP-Mode.xshd

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,21 @@
77
<Color name="String" foreground="Fuchsia" />
88
<Color name="Preprocessor" foreground="Green" />
99
<Color name="Punctuation" foreground="DarkGreen" />
10-
<Color name="MethodName" foreground="MidnightBlue" fontWeight="bold" />
11-
<Color name="Digits" foreground="DarkBlue" />
10+
<Color name="MethodName" foreground="#7a82da" fontWeight="bold" />
11+
<Color name="Digits" foreground="#ff78f8" />
1212
<Color name="CompoundKeywords" foreground="Black" fontWeight="bold" />
1313
<Color name="This" foreground="Black" fontWeight="bold" />
14-
<Color name="Operators" foreground="#FF008B8B" fontWeight="bold" />
14+
<Color name="Operators" foreground="#4067CF" fontWeight="bold" />
1515
<Color name="Namespace" foreground="#FF008000" fontWeight="bold" />
1616
<Color name="Friend" foreground="#FFA52A2A" />
17-
<Color name="Modifiers" foreground="#FF0000FF" fontWeight="bold" />
17+
<Color name="Modifiers" foreground="#7a82da" fontWeight="bold" />
1818
<Color name="TypeKeywords" foreground="#FFFF0000" />
1919
<Color name="BooleanConstants" foreground="#FF000000" fontWeight="bold" />
20-
<Color name="Keywords" foreground="#FF0000FF" fontWeight="bold" />
21-
<Color name="LoopKeywords" foreground="#FF0000FF" fontWeight="bold" />
22-
<Color name="JumpKeywords" foreground="#FF000080" />
20+
<Color name="Keywords" foreground="#1D2F90" fontWeight="bold" />
21+
<Color name="LoopKeywords" foreground="#1D2F90" fontWeight="bold" />
22+
<Color name="JumpKeywords" foreground="#213A70" />
2323
<Color name="ExceptionHandling" foreground="#FF008080" fontWeight="bold" />
24-
<Color name="ControlFlow" foreground="#FF0000FF" fontWeight="bold" />
24+
<Color name="ControlFlow" foreground="#1D2F90" fontWeight="bold" />
2525
<RuleSet ignoreCase="false">
2626
<Rule color="Punctuation">
2727
[?,.;()\[\]{}+\-/%*&lt;&gt;^=~!&amp;]+

ICSharpCode.AvalonEdit/Highlighting/Resources/CSS-Mode.xshd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<SyntaxDefinition name="CSS" extensions=".css" xmlns="http://icsharpcode.net/sharpdevelop/syntaxdefinition/2008">
22
<Color name="Comment" foreground="Gray" exampleText="/* comment */" />
33
<Color name="String" foreground="Green" exampleText="body { background: url(&quot;image.png&quot;) }" />
4-
<Color name="Selector" foreground="DarkBlue" fontWeight="bold" exampleText="div p" />
5-
<Color name="Class" foreground="DarkMagenta" exampleText="#para" />
6-
<Color name="Property" foreground="Red" exampleText="p { color: red; }" />
7-
<Color name="Value" foreground="Blue" exampleText="p { color: red; }" />
4+
<Color name="Selector" foreground="#7a82da" fontWeight="bold" exampleText="div p" />
5+
<Color name="Class" foreground="#7a82da" exampleText="#para" />
6+
<Color name="Property" foreground="Green" exampleText="p { color: red; }" />
7+
<Color name="Value" foreground="#7a82da" exampleText="p { color: red; }" />
88
<Color name="CurlyBraces" foreground="Black" exampleText="{ }" />
99
<Color name="Colon" foreground="Black" exampleText=":" />
1010
<RuleSet ignoreCase="true">

ICSharpCode.AvalonEdit/Highlighting/Resources/CSharp-Mode.xshd

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,27 @@
22
<SyntaxDefinition name="C#" extensions=".cs" xmlns="http://icsharpcode.net/sharpdevelop/syntaxdefinition/2008">
33
<!-- The named colors 'Comment' and 'String' are used in SharpDevelop to detect if a line is inside a multiline string/comment -->
44
<Color name="Comment" foreground="Green" exampleText="// comment" />
5-
<Color name="String" foreground="Blue" exampleText="string text = &quot;Hello, World!&quot;"/>
5+
<Color name="String" foreground="Yellow" exampleText="string text = &quot;Hello, World!&quot;"/>
66
<Color name="StringInterpolation" foreground="Black" exampleText="string text = $&quot;Hello, {name}!&quot;"/>
7-
<Color name="Char" foreground="Magenta" exampleText="char linefeed = '\n';"/>
7+
<Color name="Char" foreground="Yellow" exampleText="char linefeed = '\n';"/>
88
<Color name="Preprocessor" foreground="Green" exampleText="#region Title" />
99
<Color name="Punctuation" exampleText="a(b.c);" />
1010
<Color name="ValueTypeKeywords" fontWeight="bold" foreground="Red" exampleText="bool b = true;" />
1111
<Color name="ReferenceTypeKeywords" foreground="Red" exampleText="object o;" />
12-
<Color name="MethodCall" foreground="MidnightBlue" fontWeight="bold" exampleText="o.ToString();"/>
13-
<Color name="NumberLiteral" foreground="DarkBlue" exampleText="3.1415f"/>
12+
<Color name="MethodCall" foreground="#7a82da" fontWeight="bold" exampleText="o.ToString();"/>
13+
<Color name="NumberLiteral" foreground="#ff78f8" exampleText="3.1415f"/>
1414
<Color name="ThisOrBaseReference" fontWeight="bold" exampleText="this.Do(); base.Do();"/>
1515
<Color name="NullOrValueKeywords" fontWeight="bold" exampleText="if (value == null)"/>
16-
<Color name="Keywords" fontWeight="bold" foreground="Blue" exampleText="if (a) {} else {}"/>
17-
<Color name="GotoKeywords" foreground="Navy" exampleText="continue; return null;"/>
18-
<Color name="ContextKeywords" foreground="Navy" exampleText="var a = from x in y select z;"/>
16+
<Color name="Keywords" fontWeight="bold" foreground="#2753A6" exampleText="if (a) {} else {}"/>
17+
<Color name="GotoKeywords" foreground="#263CB8" exampleText="continue; return null;"/>
18+
<Color name="ContextKeywords" foreground="#263CB8" exampleText="var a = from x in y select z;"/>
1919
<Color name="ExceptionKeywords" fontWeight="bold" foreground="Teal" exampleText="try {} catch {} finally {}"/>
2020
<Color name="CheckedKeyword" fontWeight="bold" foreground="DarkGray" exampleText="checked {}"/>
2121
<Color name="UnsafeKeywords" foreground="Olive" exampleText="unsafe { fixed (..) {} }"/>
22-
<Color name="OperatorKeywords" fontWeight="bold" foreground="Pink" exampleText="public static implicit operator..."/>
22+
<Color name="OperatorKeywords" fontWeight="bold" foreground="#205299" exampleText="public static implicit operator..."/>
2323
<Color name="ParameterModifiers" fontWeight="bold" foreground="DeepPink" exampleText="(ref int a, params int[] b)"/>
2424
<Color name="Modifiers" foreground="Brown" exampleText="static readonly int a;"/>
25-
<Color name="Visibility" fontWeight="bold" foreground="Blue" exampleText="public override void ToString();"/>
25+
<Color name="Visibility" fontWeight="bold" foreground="#357FD3" exampleText="public override void ToString();"/>
2626
<Color name="NamespaceKeywords" fontWeight="bold" foreground="Green" exampleText="namespace A.B { using System; }"/>
2727
<Color name="GetSetAddRemove" foreground="SaddleBrown" exampleText="int Prop { get; set; }"/>
2828
<Color name="TrueFalse" fontWeight="bold" foreground="DarkCyan" exampleText="b = false; a = true;" />

ICSharpCode.AvalonEdit/Highlighting/Resources/Python-Mode.xshd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?xml version="1.0"?>
22
<SyntaxDefinition name="Python" extensions=".py;.pyw" xmlns="http://icsharpcode.net/sharpdevelop/syntaxdefinition/2008">
33
<Color name="Comment" foreground="Green" exampleText="# comment" />
4-
<Color name="String" foreground="Gray" exampleText="name = 'abc'"/>
5-
<Color name="MethodCall" foreground="Purple" exampleText="def Hello()"/>
6-
<Color name="NumberLiteral" foreground="DarkBlue" exampleText="3.1415f"/>
7-
<Color name="Keywords" fontWeight="bold" foreground="Blue" exampleText="if"/>
4+
<Color name="String" foreground="Yellow" exampleText="name = 'abc'"/>
5+
<Color name="MethodCall" foreground="#7a82da" exampleText="def Hello()"/>
6+
<Color name="NumberLiteral" foreground="#ff78f8" exampleText="3.1415f"/>
7+
<Color name="Keywords" fontWeight="bold" foreground="#2753A6" exampleText="if"/>
88

99
<Property name="DocCommentMarker" value="///" />
1010

ICSharpCode.AvalonEdit/TextEditor.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<ScrollViewer
1919
Style="{DynamicResource ScrollViewerStyle}"
2020
Focusable="False"
21-
Name="PART_ScrollViewer"
21+
x:Name="PART_ScrollViewer"
2222
CanContentScroll="True"
2323
VerticalScrollBarVisibility="{TemplateBinding VerticalScrollBarVisibility}"
2424
HorizontalScrollBarVisibility="{TemplateBinding HorizontalScrollBarVisibility}"

0 commit comments

Comments
 (0)