Ok so I've tried your suggestion and it works albeit quite time consuming but it is a way forward!
So for anyone else coming here:
In legacy version, create a code block, copy and paste your code snippet into it
In v10, access your new code block and this will then copy and paste into PuTTY with no issues.