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: https://www.hemant-patel.site/how-to-clean-special-characters-from-php-string

Written by Hemant Patel

Hemant, hailing from Bhopal, Madhya Pradesh, India, is a web developer and occasional blogger passionate about exchanging ideas and addressing problems in his coding journey.