How to preserve formatting and highlight syntax especially if it SQL on wordpress.com

After posting my first technical post on wordpress.com, i realized how awkward SQL queries looked so I wanted to have SQL formatted and syntax highlighted. After a search on support.wordpress.com i could able to locate the shortcode that could wrap around the source code. See example below


That’s it. Preview to see the outcome.

For more languages see here 

‘SyntaxHighlighter’ feature is provided by http://alexgorbatchev.com 

Happy Blogging

Cheers!

Raheel

Advertisements

About Raheel Syed

Oracle DBA
This entry was posted in Know how and tagged , , , , , , , , . Bookmark the permalink.

One Response to How to preserve formatting and highlight syntax especially if it SQL on wordpress.com

  1. Usama says:

    wow … thats absolutely fantastic. Thanks alot.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s