I sometimes type (by accident) shift-space, inserting unbreakable space into code. With c++, I get this:
error: stray ‘\302’ in program error: stray ‘\240’ in program
while in other formats (like RestructuredText), I am hunting mysterious errors of syntax without any visible cause.
Is there a way to
- always highlight unbreakable spaces (and perhaps other type of "illegal" whitespace, i.e. any whitespace besides space and tab)
- map shift-space to space, so that these characters are not inserted in the first place?