Hi Scott,
Thanks for your interest in Syncfusion products.
Please find the following sample link which illustrates “Previously recognized keyword”.
http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=ModifiedSample1072615319.zipThe sample code as follows.
void editControl1_CursorPositionChanged(object sender, EventArgs e)
{
ILexemLine line = this.editControl1.GetLine(this.editControl1.CurrentLine);
//Read all lexems in line
IList listofLexems = line.LineLexems;
//read current word(lexem)
ILexem currentLex = line.FindLexemByColumn(this.editControl1.CurrentColumn);
//If current word is select or from, it return.
if(currentLex.Config.Format.Name=="KeyWord")
return;
string returnStr = string.Empty;
foreach (Lexem lex in listofLexems)
{
if (lex.Column > currentLex.Column)
{
break;
}
if (lex.Config.Format.Name == "KeyWord" && lex.Column < currentLex.Column)
{
returnStr = lex.Text;
}
}
if (returnStr != string.Empty)
{
Console.WriteLine("ReturnStr:" + returnStr);
MessageBox.Show("Keyword is:" + returnStr);
}
}
Please let me know if you need further assistance.
Thanks,
Karikalan N