Skip to content

Commit f069cb1

Browse files
985360: Updated ReadMe file of this repository
1 parent 309c80b commit f069cb1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# This document describes how to change the font size of editor texts after config.xml file has been loaded
22

3-
We can change the font style, font family, font size and font color of editor texts using ISnippetFormat and Lexems by deriving the language used and changing the above-mentioned properties of font and adding that Lexems for that language in config.xml.
3+
This repository explains how to modify the font size of editor texts after the config.xml file has been loaded in a syntax editor control. The customization of text appearance in the editor is achieved using the ISnippetFormat interface and Lexems, which allow developers to define how specific language elements should be displayed. By identifying the language used in the editor and applying formatting properties such as font style, font family, font size, and font color, developers can enhance the readability and visual appeal of code snippets.
4+
For example, in a C# application, you can define a custom format for keywords using ISnippetFormat. You can set the font color to red and apply an italic style with a specific font size. Then, using ConfigLexem, you can define a regular expression pattern to match keywords and associate it with the custom format. This lexem is added to the language configuration, and the editor caches are reset to apply the changes.
45
## C#
56
ISnippetFormat keywordFormat = this.editControl1.Language.Add("Keyword");
67
keywordFormat.FontColor = Color.Red;

0 commit comments

Comments
 (0)