Avoiding hidden characters in code from copy&paste


#1

hi,
when I copy code snippets from documentation or webpages, sometimes invisible/hidden characters are present hat stop the code running. Is there a way to avoid this happening or get around it?


#2

Do you have an example?


#3

Not at the moment because I have tracked them all down and fixed them. Seems to happen with < and > when copying in fro GitHub pages and sometimes spaces before them. when I retype them by hand, then code then works.


#4

Ok, be sure to let us know when it crops up again so we can look into this for you. ‘<’ and ‘>’ are quite common characters in code, so it’s unlikely to be related to just those, else this issue would have been raised many times before.