)
We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to configure splits in the WinForms SyntaxEditor (EditControl)?

Platform: WinForms |
Control: EditControl |
Published Date: July 13, 2015 |
Last Revised Date: December 11, 2019

Split configuration

Splits contain list of expressions that must be treated as a single word. To configure the splits, specify the required word in the split section.

The following is the code example that demonstrates the same. 

XML 

   <!--Combines special character with the keyword-->
      <split>.public</split>
      <split>.class</split>

By using the split configuration, ignore the lexemes preceded by a dot.

 

For example: 

The Class and public are keywords in the EditControl. By using the Splits concept in the EditControl, you can ignore this keyword when it is preceded with a Dot. When .public is loaded in the EditControl, public is not highlighted as keyword. 

You can refer to the following Link,

http://help.syncfusion.com/ug/windows%20forms/index.html#!Documents/creatingacustomlanguageconfigurationfile.htm            

 

Before split configuration

Figure 1: Before Splits configuration

After split configuration

Figure 2: After Splits configuration                                                     

Samples:

C#: http://www.syncfusion.com/downloads/support/forum/119331/ze/EditControl_KeywordSplit_C#-516963117

VB: http://www.syncfusion.com/downloads/support/forum/119331/ze/EditControlKeywordSplit_VB-39158445

 

Reference link: https://help.syncfusion.com/windowsforms/syntax-editor/syntax-highlighting#splits-1

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon