This plugin easily integrates the
SyntaxHighlighter by Alex Gorbatchev into WordPress.
Supports AS3, Bash, C, C++, C#, ColdFusion, CSS, Delphi, diff, Erlang, Groovy, Java, JavaScript, JavaFX, Perl, PHP, Plain Text, Python, PowerShell, Ruby, Scala, SQL, VB,
VB.NET, XML, and (X)HTML.
Feature summary
- 100% client side, no server dependency
- Multiple languages support
- Wide browser support
- Very lightweight
Localization
If you have translated into your language, please let me know.
- Upload the entire
syntax-highlighter
folder to the /wp-content/plugins/
directory.
- Activate the plugin through the 'Plugins' menu in WordPress.
Plugin Usage
Just wrap your code in
[language]
, such as
[php]code here[/php]
or
[css]code here[/css]
.
For a list of supported languages (all widely used languages are supported).
Languages Supported
- ActionScript3 (as3)
- Bash/shell (bash, shell)
- C, C++ (cpp, c, c++)
- C# (csharp)
- ColdFusion (coldfusion)
- CSS (css)
- Delphi (delphi, pascal)
- diff, patch (diff, patch)
- Erlang (erlang)
- Groovy (groovy)
- Java (java)
- Java Script (javascript)
- JavaFX (javafx)
- Perl (perl)
- PHP (php)
- Plain Text (plain, text)
- PowerShell (powershell)
- Python (python)
- Ruby (ruby)
- Scala (Scala)
- SQL (sql)
- Visual Basic (vb, vbnet)
- XML/HTML (xml, html, xhtml, xslt)