3 ms·
Emacs and IIRC vim highlight control characters and nonstandard whitespace. I kinda thought it standard for code editors.
by andreareina 6y ago
Emacs and IIRC vim highlight control characters and nonstandard whitespace. I kinda thought it standard for code editors.
- addcninblue 6y agoFor vim, it's under the listchars setting, in case anyone wanted to know! (":help listchars") This has been crucial in debugging really strange issues students manage to create.
- andreareina 6y agoOne of the strange things I've encountered is bare \r (i.e. no accompanying \n) in the middle of a line from a windows-sourced file. Don't know how they got there, just that redshift didn't like it one bit.
- bear8642 6y agoodd Windows gave you that - believe \r was Mac's standard at one point…
- tcoff91 6y agoI think how it happens with windows is one windows editor adds \r\n and then the file is edited in an editor that isn't properly aware of the windows line ending and the \n gets deleted. I've seen this happen before. It's especially likely to happen if the file has mixed line endings.