I want to use a code highlighting plugin for WordPress and I’ve started using the SyntaxHighlighter Evolved plugin which is based on the Syntax Highlighter Script.
Code can simply be enclosed within shortcodes of the required language.
Thus, including the following code
gives the following result
<?php phpinfo(); ?>