I would like to do something like this Textmate tip, so that trailing whitespace are always highlighted in some way when I code something in Python - it makes it easier to correct it immediately and other editors such as Emacs can do it.
Unfortunately the discussion after that post seems to suggest it's difficult to do. For me the invalid.trailing-whitespace
scope selector is not even visible in the preferences after following this tip. Has anyone else had any success with this?