If you want to display code on the blog you should wrap that code in a <code> tag like so:
<code>
<p> Here is a paragraph. </p>
</code>