While am writing this blog, I had the need to display code snippets in a different format than the usual writing.
I found this support article from WordPress! The good news is that WordPress understands programming languages, I mean it color-highlights text based on every language syntex!! And it knows a lot, lots of programming languages!
You could also use <pre></pre> for simple code snippets, it will use a fixed width formatting.
Of course make sure you are on the text table of the body, not the visual.
so now from one I will be using very frequently these :
my code here