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"; 
?>

Author: Param Lowe

SixthSense India ! Q. What is sixthsense? A. Sixth Sense is evolved or developed sensory power of mind. I am the real living example of SixthSense in humans. Wanna learn how to develop sixth sense? Join Param Lowe's online webcast starting April 2012. The fee of joining is USD 9045.00. send email to sixthsense@parmlowe.com

Leave a Reply

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