Hi,
SyntaxEditor has a feature to mark text with a red wavey line which is perfect for showing spelling errors in a text document.
My question is how can such a feature be implemented best? I'd like to know where the best place is to implement the actual checking and the updating of the highlighting.
Assume you have a method like this
public bool IsCorrectlySpelled(string word);
It tells you if a word is spelled correctly (no highlighting) or not (apply the wavey lines).
Also if you think of a dynamic syntax langauge that does e.g. HTML tag highlighting, I only want to perform the spell checking on the plain text, not on the HTML tags, attributes and so on.
Any ideas how to get this working ("best practise") would be nice?
Thanks for your help,
Joachim
SyntaxEditor has a feature to mark text with a red wavey line which is perfect for showing spelling errors in a text document.
My question is how can such a feature be implemented best? I'd like to know where the best place is to implement the actual checking and the updating of the highlighting.
Assume you have a method like this
public bool IsCorrectlySpelled(string word);
It tells you if a word is spelled correctly (no highlighting) or not (apply the wavey lines).
Also if you think of a dynamic syntax langauge that does e.g. HTML tag highlighting, I only want to perform the spell checking on the plain text, not on the HTML tags, attributes and so on.
Any ideas how to get this working ("best practise") would be nice?
Thanks for your help,
Joachim