From testing, the issue seems to have somehitng to do with where its copied from - possibly something to do with whether the pasted text has formatting in it.
If I copy a line from the editor Im using to write my code, I cannot paste it direct into here.
If I paste it into notepad, then copy it from notepad, I can then paste it into here.