Sorry for posting on an old thread but this is the first link when Googling for this problem.
This problem is caused by the “Auto Convert HTML” feature which can be disabled in the settings. If you paste a lot of code, and don’t care about HTML, you might prefer to do this.