Categories
WordPress

Code Highlighting

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

[code lang=”php”]
<?php
phpinfo();
?>
[/code]

gives the following result

<?php
phpinfo();
?>