Re:Be careful what you copy: Invisibly inserting usernames i...
by plesn on Wednesday April 04, 2018 @09:00AM
(#16754256)
How do I see those invisible characters in emacs or vim ?
In emacs I thought that whitespace-mode would do the trick but apparently it doesn't.
[ Parent
| on HN ]
Re:Be careful what you copy: Invisibly inserting usernames i...
by Izkata on Wednesday April 04, 2018 @09:12AM
(#16754330)
vim (7.4) seems to display them by default. With my whole vimrc commented out (just to be sure it wasn't a setting I changed), I get this:
F<200b>or exam<200b>ple, I’ve ins<200b>erted 10 ze<200b>ro-width spa<200b>ces in<200b>to thi<200b>s sentence, c<200b>an you tel<200b><200b>l?
(The <200b> is also highlighted a different color than the rest of the text, and acts like a single character when moving the cursor through it. It's really, really obvious.)
Re:Be careful what you copy: Invisibly inserting usernames i...
by plesn on Wednesday April 04, 2018 @10:24AM
(#16754946)
Indeed, I copy-pasted in emacs but not in vim, my bad...
Re:Be careful what you copy: Invisibly inserting usernames i...
by westal on Wednesday April 04, 2018 @03:45PM
(#16758278)
In emacs those characters are by default visible as one-pixel wide spaces, to make them more apparent eval (update-glyphless-char-display 'glyphless-char-display-control '((format-control . empty-box) (no-font . hex-code))).