How to Highlight PHP Source Code in Wordpress Post

PHP Source Code Highlighter (syntaxhighlighter) Wordpress plugin allow you to post php code inside your wordpress post with syntax highlight and line number. The plugin preserve code formatting and do not encode character until you do manually.

Supports the following languages:

* C++ — `cpp`, `c`, `c++`
* C# — `c#`, `c-sharp`, `csharp`
* CSS — `css`
* Delphi — `delphi`, `pascal`
* Java — `java`
* JavaScript — `js`, `jscript`, `javascript`
* PHP — `php`
* Python — `py`, `python`
* Ruby — `rb`, `ruby`, `rails`, `ror`
* SQL — `sql`
* VB — `vb`, `vb.net`
* XML/HTML — `xml`, `html`, `xhtml`, `xslt`

How to Use Wordpress Syntax/Source Code Highlight Plugin

This plugin do not add any button in the editor to wrap code automatically. Hope this feature will be added soon. You need to wrap you code within [source code language='php'] </strong>add your php code here <strong>[/source code] tag.

Download: http://downloads.wordpress.org/plugin/syntaxhighlighter.zip
Live Demo/Screenshot: http://www.bala-krishna.com/how-to-clean-special-characters-from-php-string



Rate this Post:

Read Related Post

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

AddThis Social Bookmark Button

Leave a Reply

You must be logged in to post a comment.



oak wardrobes |