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: https://www.bala-krishna.com/how-to-clean-special-characters-from-php-string
Recent Comments