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.

special characters in tokens

Thread ID:





84294 Jun 30,2009 02:38 AM Oct 13,2009 05:37 AM Windows Forms 3
Tags: EditControl
Txomin Etxebarria
Asked On June 30, 2009 02:38 AM

I am using Essential Edit to edit a language where I have spaecial variables such as:
but it is interpreted as three different tokens: '__', '$' and 'some_path_varname'.
I haven't found any way to get the whole word '__$some_path_varname' as a single token.
Is there any way I haven't seen?
Thank you in advance.

Fathima Shalini P [Syncfusion]
Replied On July 1, 2009 07:52 AM


Thank you for your interest in Syncfusion Products.

I am able to reproduce the issue. As a workaround, we can get the whole word that contains special characters like "_$" as provided in the following code snippet:

private void getWordToolStripMenuItem_Click(object sender, EventArgs e)
string text = this.editControl1.GetLineText(this.editControl1.CurrentLine);
string[] words = text.Split ( new char[] { ' ' } );
foreach(string s in words)
string temp;
if (s.Contains(";"))
temp = s.Remove(s.Length - 1);
temp = s;

Please let me know if any concerns.


Txomin Etxebarria
Replied On July 2, 2009 08:12 AM

Thank you for your answer,

The workaround you suggest is valid to replace code such as:

private void TextEditor_ContextChoiceOpen(IContextChoiceController controller)
IRenderedLexem dl = controller.Dropper;
IRenderedLexem lbd = controller.LexemBeforeDropper;

but if you doble-click the word __$some_path_varname the whole word is not selected. Any way, if it is not possible I'll have to accept it.


Nandakumar R [Syncfusion]
Replied On October 13, 2009 05:37 AM

Hi Txomin,

Thanks for the update.



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.