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.
Unfortunately, activation email could not send to your email. Please try again.

Some keywords not highlighting

Thread ID:

Created:

Updated:

Platform:

Replies:

10990 Feb 18,2004 11:42 PM Mar 1,2004 02:42 PM Windows Forms 9
loading
Tags: EditControl
Marco Ensing
Asked On February 18, 2004 11:42 PM

Wonder if somebody has a workaround for the following: When I add keywords to the editControl "Price" "Price Something" Only "Price" will be show in the associated keyword color. When I add "Something with spaces" this will be shown in the correct associated keyword color. It seems that the short subset keywords are regExpr before the longer keywords. And that seems to influence the regExp on the long keyword. Anybody any tips on it. Or somebody who can confirm this? Regards, Marco

Marco Ensing
Replied On February 19, 2004 07:51 PM

Forgot to mention that the KeyWords are added to the editControl dynamically Marco

Administrator [Syncfusion]
Replied On February 20, 2004 11:33 AM

Hi Marco, Please add the following entries for the Keyword in your configuration file : Keyword=REGEX[\bprice\b] Keyword=REGEX[\bprice something\b] You could use REGEX to specify the keywords in this case. Please try this sample application and let me know if this works for you. Regards, Guru Patwal Syncfusion, Inc.

Marco Ensing
Replied On February 22, 2004 10:56 PM

Hey Guru, Thanks for your time to look into this issue. I looked at your code and did some further testing. If you use the UseSettingStream(), it fails. This has been the only option for me to dynamically add a large amount of keywords. Instead of //this.editControl1.SettingFile = "CPP.INI"; Use: FileStream fs = new FileStream(@"CPP.INI", FileMode.Open); System.IO.StreamReader streamReader = new System.IO.StreamReader(fs); this.editControl1.UseSettingStream(streamReader.BaseStream); edit_keyword_sample_978.zip See attached zip file for MSVStudio 2003

Administrator [Syncfusion]
Replied On February 24, 2004 03:40 PM

Hi Marco, Thanks for the modified sample application. Your sample seems to work fine here in v2.0.2.1. The EditControl''s UseSettingStream method also works fine, and the keywords are highlighted correctly. Please let me know if you are using an older version of Essential Edit (older than v2.0.2.1). Thanks for your cooperation. Regards, Guru Patwal Syncfusion, Inc.

Marco Ensing
Replied On February 24, 2004 06:30 PM

It all works Thanks for the version clarification. One way or the other the example got linked with a shipped syncfusion of a product called Deklarit which used version 1.6 The example works o.k. now Regards, Marco

Marco Ensing
Replied On February 24, 2004 08:48 PM

The REGEX[ ] part works in case-sensitve compare but for case-insensitive it seems to fail. Attach is just the cpp.ini file CPP_8782.zip With a large test file I received a lot of MessageBoxes on invalid Reg-expressions. Marco

Administrator [Syncfusion]
Replied On February 25, 2004 05:31 PM

Hi Marco, Thanks for the update. The Keywords in the configuration file, like in most programming languages are not case insensitive (not in CPP either). If you wish to make it case insensitive, then I am afraid, you should specify every possible combination of lower and upper case letters contained in the keyword as a ''Keyword''. We could also consider this as a feature request for a future release of Essential Edit. Thanks for choosing Syncfusion products. Regards, Guru Patwal Syncfusion, Inc.

Marco Ensing
Replied On February 25, 2004 10:46 PM

Final comment on this thread I get a lot of messageBoxes when the Regex fails. Could you just silently direct that to the output console? Marco

Administrator [Syncfusion]
Replied On March 1, 2004 02:42 PM

Hi Marco, Thanks for your feedback on this issue. I will forward your suggestion the development team. We appreciate your continued interest in Syncfusion products. Regards, Guru Patwal Syncfusion, Inc.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

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.

;