A good plugin to use if you are wanting to display code snippets in your post is SyntaxHighlighter Evolved. It will very nicely display: PHP, MySQL, HTML, etc... code in a nicely formatted code box.
Setup only takes about 30 seconds, than for immediate basic usage just warp any code you want in <pre> </pre> HTML tags.