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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

special characters in tokens

Thread ID:





84294 Jun 30,2009 06:38 AM UTC Oct 13,2009 09:37 AM UTC WinForms 3
Tags: EditControl
Txomin Etxebarria
Asked On June 30, 2009 06:38 AM UTC

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 11:52 AM UTC


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 12:12 PM UTC

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 09:37 AM UTC

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.

Please sign in to access our forum

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

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