Posted 21 years ago
by painetraine

I have a bunch of autoreplacements defined for my application and they all begin with !. So a replacement may be !fn and that is replaced with FileName or something.
However, with the v2.0.3 version, autoreplacements no longer work and the ! seems to be the breaking character because if I define an autoreplacement without the ! then everything works ok.
As an example if you modify the mainform constructor of the sample app (C#) to the following
// Force the C# language to load by default
// fileAutoLoadLanguageExampleTextMenuItem.Checked = false;
languageCSharpMenuItem.PerformClick();
this.editor.Language.AutoReplace.Add(new AutoReplaceEntry("!fn", "sql.txt"));
Using v2.0.102 the autoreplacement will work, using v2.0.103, the autoreplacement will not work.
I have modified my code to remove the ! when adding the replacement to the collection and then remove it when the auto replacement is performed, but is there another way for me to handle this?
Thanls
However, with the v2.0.3 version, autoreplacements no longer work and the ! seems to be the breaking character because if I define an autoreplacement without the ! then everything works ok.
As an example if you modify the mainform constructor of the sample app (C#) to the following
// Force the C# language to load by default
// fileAutoLoadLanguageExampleTextMenuItem.Checked = false;
languageCSharpMenuItem.PerformClick();
this.editor.Language.AutoReplace.Add(new AutoReplaceEntry("!fn", "sql.txt"));
Using v2.0.102 the autoreplacement will work, using v2.0.103, the autoreplacement will not work.
I have modified my code to remove the ! when adding the replacement to the collection and then remove it when the auto replacement is performed, but is there another way for me to handle this?
Thanls