I usually just edit the code in a .txt file with Notepad
Than I copy it from there to the browser
If I want to copy code from VS I copy it to the .txt file too first And then copy it from there to the browser
And this usually works fine Hope it helps