Desktop website browsers, including most mobile browsers, use languages such as HTML and XML to
render the various elements of a web page. So without special tags,
a blog post containing a line/s of raw code will appear on the
published post as the actual element the code describes. Blog authors
can use special scripts, tags and plugins to display raw code on a blog
post instead of the interpretation of that code.
So, you have a code and want to post this to your blog. What will you do so that it will be displayed correctly? I recommend this tool. It is very easy to use.