I think this would be neat as a command rather than having it on all the time. So you would have a keystroke that turns it on and off. Perhaps it could even be on by default.
I bet something like that would be very easy to hack into Emacs on top of its new built-in color theme support. It shouldn't be difficult for other editors either.