Yeah, that's what I figured, in fact the more I think about it, the less simple it seems to become!
Its one of those classic software problems, in making something "smart" there are always occasions when its not so smart. Perhaps Ill just get my friend to adjust her typing style.
"only surrounded by white space" doesn't work -- consider something like $foo[' which smart typing should match with '] automatically, yet neither the [ or ' are surrounded by white space.
"only FOLLOWED by white space" is a bit better, but still doesn't work
"only surrounded by white space or other smart typing pairs" is a lot better
... but I think in practice, it will take a lot of thinking before a real solution is found... no quick patch here :)
______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________