1)change to text view
2)the code must be compatible with wordpress and that’s why you need to insert your code in this link
http://www.elliotswan.com/postable/
it generate new code that compatible to wordpress .and only then you need to insert the code .
<pre><code>
here…
</code></pre>