How to post Source Code with syntax highlighting in WordPress?

I have been posting some web-dev help, PHP scripts and CSS styles codes on my Sixth Sense India blog. Earlier, I use to put PHP codes under <blockquote> </blockquote> tags, but found that it does not look imperessive and is not easy to read or copy from the post page. Recently, I came to know about a way to post Php Source code on to blog post. You can use a plugin SyntaxHighlighter Evolved and publish your Code snippets like this

[sourcecode language=”php/css/javascript“]
<?
//Put your Code Here
echo “Hello World”;
?>
[/sourcecode]

It will render like as its shown here below

<? 
//Put your Code Here 
echo "Hello World"; 
?>

Leave a Reply

Your email address will not be published. Required fields are marked *

*