Plugin for displaying code snippets in WordPress
A really comfortable and easy to use plugin for displaying code snippets in WordPress posts is called SyntaxHighlighter Evolved. You can find more information here http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/
After installing and activating it, just enclose your code snippet in  and [/], depending on the language you are using.
<?php echo 'Hello world!'; ?>
Article by Morning Train Technologies