Wonder if somebody has a workaround for the following:
When I add keywords to the editControl
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?
Forgot to mention that the KeyWords are added to the editControl dynamically
ADAdministrator Syncfusion Team February 20, 2004 11:33 AM
Please add the following entries for the Keyword in your configuration file :
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.
MEMarco EnsingFebruary 22, 2004 10:56 PM
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.
//this.editControl1.SettingFile = "CPP.INI";
FileStream fs = new FileStream(@"CPP.INI", FileMode.Open);
System.IO.StreamReader streamReader = new System.IO.StreamReader(fs);
See attached zip file for MSVStudio 2003
ADAdministrator Syncfusion Team February 24, 2004 03:40 PM
Thanks for the modified sample application. Your sample seems to work fine here in v220.127.116.11. 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 v18.104.22.168). Thanks for your cooperation.
MEMarco EnsingFebruary 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
MEMarco EnsingFebruary 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
With a large test file I received a lot of MessageBoxes on invalid Reg-expressions.
ADAdministrator Syncfusion Team February 25, 2004 05:31 PM
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.
MEMarco EnsingFebruary 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?
ADAdministrator Syncfusion Team March 1, 2004 02:42 PM
Thanks for your feedback on this issue. I will forward your suggestion the development team. We appreciate your continued interest in Syncfusion products.