Skip to content

Commit 4b1971c

Browse files
authored
Merge pull request #2 from Niranjan16-Ninja/master
KeyWord change and Nuget packages are added in sample
2 parents 38ce479 + 92268ee commit 4b1971c

File tree

6 files changed

+58
-20
lines changed

6 files changed

+58
-20
lines changed
-45.5 KB
Binary file not shown.

EditControlFontCustomize/.vs/EditControlFontCustomize/v16/Server/sqlite3/db.lock

Whitespace-only changes.
Binary file not shown.

EditControlFontCustomize/EditControlFontCustomize.csproj

Lines changed: 29 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,35 @@
3333
<WarningLevel>4</WarningLevel>
3434
</PropertyGroup>
3535
<ItemGroup>
36-
<Reference Include="Syncfusion.Edit.Windows"/>
37-
<Reference Include="Syncfusion.Grid.Base"/>
38-
<Reference Include="Syncfusion.Grid.Windows"/>
39-
<Reference Include="Syncfusion.Licensing"/>
40-
<Reference Include="Syncfusion.Shared.Base"/>
41-
<Reference Include="Syncfusion.Shared.Windows"/>
42-
<Reference Include="Syncfusion.SpellChecker.Base"></Reference>
43-
<Reference Include="Syncfusion.Tools.Base"/>
44-
<Reference Include="Syncfusion.Tools.Windows"/>
36+
<Reference Include="Syncfusion.Edit.Windows, Version=17.4460.0.55, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL">
37+
<HintPath>packages\Syncfusion.Edit.Windows.17.4.0.55\lib\net46\Syncfusion.Edit.Windows.dll</HintPath>
38+
<Private>True</Private>
39+
</Reference>
40+
<Reference Include="Syncfusion.Grid.Base, Version=17.4460.0.55, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL">
41+
<HintPath>packages\Syncfusion.Grid.Base.17.4.0.55\lib\net46\Syncfusion.Grid.Base.dll</HintPath>
42+
</Reference>
43+
<Reference Include="Syncfusion.Grid.Windows, Version=17.4460.0.55, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL">
44+
<HintPath>packages\Syncfusion.Grid.Windows.17.4.0.55\lib\net46\Syncfusion.Grid.Windows.dll</HintPath>
45+
</Reference>
46+
<Reference Include="Syncfusion.Licensing, Version=17.4460.0.55, Culture=neutral, PublicKeyToken=632609b4d040f6b4, processorArchitecture=MSIL">
47+
<HintPath>packages\Syncfusion.Licensing.17.4.0.55\lib\net46\Syncfusion.Licensing.dll</HintPath>
48+
</Reference>
49+
<Reference Include="Syncfusion.Shared.Base, Version=17.4460.0.55, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL">
50+
<HintPath>packages\Syncfusion.Shared.Base.17.4.0.55\lib\net46\Syncfusion.Shared.Base.dll</HintPath>
51+
</Reference>
52+
<Reference Include="Syncfusion.Shared.Windows, Version=17.4460.0.55, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL">
53+
<HintPath>packages\Syncfusion.Shared.Windows.17.4.0.55\lib\net46\Syncfusion.Shared.Windows.dll</HintPath>
54+
</Reference>
55+
<Reference Include="Syncfusion.SpellChecker.Base, Version=17.4460.0.55, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL">
56+
<HintPath>packages\Syncfusion.SpellChecker.Base.17.4.0.55\lib\net46\Syncfusion.SpellChecker.Base.dll</HintPath>
57+
</Reference>
58+
<Reference Include="Syncfusion.Tools.Base, Version=17.4460.0.55, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL">
59+
<HintPath>packages\Syncfusion.Tools.Base.17.4.0.55\lib\net46\Syncfusion.Tools.Base.dll</HintPath>
60+
</Reference>
61+
<Reference Include="Syncfusion.Tools.Windows, Version=17.4460.0.55, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL">
62+
<HintPath>packages\Syncfusion.Tools.Windows.17.4.0.55\lib\net46\Syncfusion.Tools.Windows.dll</HintPath>
63+
<Private>True</Private>
64+
</Reference>
4565
<Reference Include="System" />
4666
<Reference Include="System.Core" />
4767
<Reference Include="System.Xml.Linq" />

EditControlFontCustomize/Form1.cs

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ public Form1()
2323
this.editControl1.Configurator.Open(ConfigPath);
2424
editControl1.NewFile(editControl1.Configurator["C#"]);
2525
editControl1.Language.CaseInsensitive = true;
26-
this.editControl1.Text = "New Table in Syntax Editor \nand how to change the font appearance \nespecially in Syntax Editor";
26+
this.editControl1.Text = "New Table in Syntax Editor \nand how to change the font appearance \nespecially in Syntax Editor \n value of gravity is 9.816653 m/s*s";
2727
this.editControl1.ApplyConfiguration(Syncfusion.Windows.Forms.Edit.Enums.KnownLanguages.CSharp);
2828
}
2929

3030
private void button1_Click(object sender, EventArgs e)
3131
{
3232
ISnippetFormat keywordFormat = this.editControl1.Language.Add("Keyword");
3333
keywordFormat.FontColor = Color.Red;
34-
keywordFormat.Font = new Font(FontFamily.GenericSansSerif, 14,FontStyle.Italic);
34+
keywordFormat.Font = new Font(FontFamily.GenericSansSerif, 12, FontStyle.Regular);
3535

3636
ConfigLexem configLex = new ConfigLexem("[A-Z]+", "", FormatType.Custom, false);
3737

@@ -40,9 +40,27 @@ private void button1_Click(object sender, EventArgs e)
4040
configLex.IsEndRegex = true;
4141
configLex.FormatName = "Keyword";
4242

43+
ISnippetFormat keywordFormat1 = this.editControl1.Language.Add("Keyword1");
44+
keywordFormat1.FontColor = Color.Green;
45+
keywordFormat1.Font = new Font(FontFamily.GenericSansSerif, 12, FontStyle.Bold);
46+
47+
ConfigLexem configLex1 = new ConfigLexem("[1-9]+", "", FormatType.Custom, false);
48+
49+
50+
configLex.IsBeginRegex = true;
51+
configLex.IsEndRegex = true;
52+
configLex.FormatName = "Keyword";
53+
54+
55+
configLex1.IsBeginRegex = true;
56+
configLex1.IsEndRegex = true;
57+
configLex1.FormatName = "Keyword1";
58+
4359

4460
editControl1.Language.Lexems.Add(configLex);
61+
editControl1.Language.Lexems.Add(configLex1);
4562
editControl1.Language.ResetCaches();
63+
4664
}
4765
}
4866
}
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="Syncfusion.Edit.Windows" version="17.4.0.51" targetFramework="net46" />
4-
<package id="Syncfusion.Grid.Base" version="17.4.0.51" targetFramework="net46" />
5-
<package id="Syncfusion.Grid.Windows" version="17.4.0.51" targetFramework="net46" />
6-
<package id="Syncfusion.Licensing" version="17.4.0.51" targetFramework="net46" />
7-
<package id="Syncfusion.Shared.Base" version="17.4.0.51" targetFramework="net46" />
8-
<package id="Syncfusion.Shared.Windows" version="17.4.0.51" targetFramework="net46" />
9-
<package id="Syncfusion.SpellChecker.Base" version="17.4.0.51" targetFramework="net46" />
10-
<package id="Syncfusion.Tools.Base" version="17.4.0.51" targetFramework="net46" />
11-
<package id="Syncfusion.Tools.Windows" version="17.4.0.51" targetFramework="net46" />
3+
<package id="Syncfusion.Edit.Windows" version="17.4.0.55" targetFramework="net46" />
4+
<package id="Syncfusion.Grid.Base" version="17.4.0.55" targetFramework="net46" />
5+
<package id="Syncfusion.Grid.Windows" version="17.4.0.55" targetFramework="net46" />
6+
<package id="Syncfusion.Licensing" version="17.4.0.55" targetFramework="net46" />
7+
<package id="Syncfusion.Shared.Base" version="17.4.0.55" targetFramework="net46" />
8+
<package id="Syncfusion.Shared.Windows" version="17.4.0.55" targetFramework="net46" />
9+
<package id="Syncfusion.SpellChecker.Base" version="17.4.0.55" targetFramework="net46" />
10+
<package id="Syncfusion.Tools.Base" version="17.4.0.55" targetFramework="net46" />
11+
<package id="Syncfusion.Tools.Windows" version="17.4.0.55" targetFramework="net46" />
1212
</packages>

0 commit comments

Comments
 (0)