special characters in tokens

I am using Essential Edit to edit a language where I have spaecial variables such as:
__$some_path_varname
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.

3 Replies

FS Fathima Shalini P Syncfusion Team July 1, 2009 11:52 AM UTC

Hi,

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);
}
else
{
temp = s;
}
if(temp.StartsWith("_$"))
MessageBox.Show(temp);
}
}


Please let me know if any concerns.

Regards,
Fathima


TE Txomin Etxebarria 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.

Regards,
Txomin




NR Nandakumar R Syncfusion Team October 13, 2009 09:37 AM UTC

Hi Txomin,

Thanks for the update.

Regards,
Nanda

Loader.
Up arrow icon