SyntaxHighlighter Plus
Easily post source code such as PHP or HTML and display it in a styled box.
The facts
- Rating
- 5★ from 1
- Active installs
- 100+
- Price
- Free
- Last updated
- 3 Jun 2010
- Added
- Dec 2007
- Requires WP
- 2.0
- Downloads
- 40,521
Our analysis
AI-assistedSyntaxHighlighter Plus is a WordPress plugin designed for code syntax highlighting. It allows you to post syntax-highlighted code without losing formatting, making it easier to share code snippets on your site.
The plugin supports multiple programming languages, including Bash, C++, C#, CSS, Java, JavaScript, PHP, Python, and many others. It uses the SyntaxHighlighter JavaScript package to enhance the presentation of code on your website.
Best for: This plugin is suitable for developers or bloggers who frequently share code snippets on their WordPress sites.
What it does well
- ✓Free to use from the WordPress.org directory
- ✓Supports a wide range of programming languages
- ✓Maintains code formatting without manual changes
Where it falls short
- •Last updated in June 2010
- •Limited user ratings and active installs
Verdict
SyntaxHighlighter Plus offers a straightforward solution for code highlighting, but its age and limited updates may be a concern for some users.
From the developer
Fred Wu's own description of SyntaxHighlighter Plus, lightly tidied.
SyntaxHighlighter Plus is a WordPress plugin for code syntax highlighting. It is an enhanced version of the original SyntaxHighlighter by Matt, Viper007Bond and mdawaffe. Please give them a big applause for making such a great plugin!
SyntaxHighlighter allows you to easily post syntax highlighted code all without loosing it’s formatting or making an manual changes.
It supports the following languages (the alias for use in the post is listed next to the name):
- Bash —
bash,sh - C++ —
cpp,c,c++ - C# —
c#,c-sharp,csharp - CSS —
css - Delphi —
delphi,pascal - Diff —
diff - Groovy —
groovy - Java —
java - JavaScript —
js,jscript,javascript - Perl —
perl,pl - PHP —
php - Plain text —
plain,text - Python —
py,python - Ruby —
rb,ruby,rails,ror - Scala —
scala - SQL —
sql - VB —
vb,vb.net - XML/HTML —
xml,html,xhtml,xslt
This plugin uses the SyntaxHighlighter JavaScript package by Alex Gorbatchev.
Other BBCode Methods
Find [sourcecode language='css']code here[/sourcecode] too long to type? Here’s some alternative examples:
[source language='css']code here[/source][code language='css']code here[/code][sourcecode lang='css']code here[/sourcecode][source lang='css']code here[/source][code lang='css']code here[/code][sourcecode='css']code here[/sourcecode][source='css']code here[/source][code='css']code here[/code][lang='css']code here[/lang][css]code here[/css](or any of the supported language)
Note: Quotation marks around the language can be omitted for even shorter and neater syntax. 🙂