What is the best way to find out the 'word' before the caret?
For example, if I type
if(index = 0 && blah.
I would like to be able to easily figure out that the word "blah." is just before the caret. But the editor.ActiveView.GetCurrentWordText() function just returns "."
I've tried get hold of the text in other ways but the closest I can get is grabbing the whole line. But I can't see how to get hold of the caret position within that line.
I used to use triggers for this before...
Any suggestions?
Thanks in advance,
Jan
For example, if I type
if(index = 0 && blah.
I would like to be able to easily figure out that the word "blah." is just before the caret. But the editor.ActiveView.GetCurrentWordText() function just returns "."
I've tried get hold of the text in other ways but the closest I can get is grabbing the whole line. But I can't see how to get hold of the caret position within that line.
I used to use triggers for this before...
Any suggestions?
Thanks in advance,
Jan