Posted 20 years ago
by Marianne
![Avatar](https://secure.gravatar.com/avatar/3a9494340a187736cbd4b10ec1996248.jpg?s=64&d=identicon&r=g)
When a trigger fires (for a '.', for example) I'm looking for the previous word. Using:
Editor.Document.CurrentView.GetPreviousToken().Text simply returns '.'. Wouldn't that be the current token? How can I retrieve the actual previous token without using the old 'EndOffset - 2' method?
Editor.Document.CurrentView.GetPreviousToken().Text simply returns '.'. Wouldn't that be the current token? How can I retrieve the actual previous token without using the old 'EndOffset - 2' method?
------------------------------- Marianne