Is there a way to highlight zero-length characters in text files (PHP/HTML in this case). I recently had an issue with a web page not passing W3C validation due to a invalid character.
As the character in question was a ZERO WIDTH NO-BREAK SPACE
, it took an age to actually find it. It was purely by accident that I used git diff
and it showed up as being <U+FEFF>
.
It would be great if I was able to see these types of characters actually in SublimeText while I'm working on a source file.
I've turned on showing up whitespace by adding:
"draw_white_space": "all"
to my user preferences, but while that does show spaces and tabs, it doesn't show this character up.