SyntaxHighlighter2
Easily post source code such as PHP or HTML and display it in a styled box.
Envisager une alternative
SyntaxHighlighter2 shows warning signs in 2026 — compare the alternatives below before installing. It runs on 20+ sites and was last updated 17 years ago, and scores 24/100 on our health check.
- Petite base d'utilisateurs (20+ installations actives)
- Très peu de critiques jusqu'à présent
- Pas de mise à jour dans 16 ans
- Uniquement testé jusqu'à WordPress 3,0 (le dernier est de 7,1)
Comment s'accumule-t-il ?
Côte à côte sur les installations, les mises à jour, les évaluations et le supportTéléchargements quotidiens
Les pics de téléchargement suivent généralement une nouvelle version - chaque site qui met à jour automatiquement compte comme un téléchargement.
Classements
Where SyntaxHighlighter2 stands todayWordPress.org Classements de recherche
Position en direct dans la recherche de plugins, Top 100| Mot-clé | Position |
|---|---|
| code | >100 |
| html | >100 |
| php | >100 |
| sourcecode | #39 |
| xhtml | >100 |
Adoption de version
Part de sites actifs par version.
About SyntaxHighlighter2
À partir du Lisezmoi officiel · v2.1.2Description
SyntaxHighlighter2 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):
- AS3 —
as,as3 - C++ —
cpp,c,c++ - C# —
c#,c-sharp,csharp - ColdFusion –
cf,coldfusion - CSS —
css - Delphi —
delphi,pascal - Diff/Patches —
diff - Erlang —
erlang - Groovy —
groovy - Java —
java - JavaFX —
javafx - JavaScript —
js,jscript,javascript - Perl —
perl - PHP —
php - Plain text —
plain - PowerShell —
powershell - 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]
PHP Version
PHP 5+
Installation
Updgrading From A Previous Version
To upgrade from a previous version of this plugin, delete the entire folder and files from the previous version of the plugin and then follow the installation instructions below.
Uploading The Plugin
Extract all files from the ZIP file, making sure to keep the file structure intact, and then upload it to /wp-content/plugins/.
This should result in the following file structure:
- wp-content
- plugins
- syntaxhighlighter2
| readme.txt
| screenshot-1.png
| syntaxhighlighter2.php
- files
| clipboard.swf
| shBrushCpp.js
| shBrushCSharp.js
| [...]
| shCore.js
| wrapping.png
See Also: “Installing Plugins” article on the WP Codex
Plugin Activation
Go to the admin area of your WordPress install and click on the “Plugins” menu. Click on “Activate” for the “SyntaxHighlighter” plugin.
Plugin Usage
Just wrap your code in [sourcecode language='css']code here[/sourcecode]. The language attribute is required! See the plugin’s description for a list of valid language attributes.
Journal de modifications
Version 2.1.2
- Compatibility with WordPress 3.0
Version 2.1.1
- Styling issue after upgrade
- Theme Eclipse added
Version 2.1.0
- Upgraded to SyntaxHighlighter 2.1.364
Version 2.0.6
- Options are not always picked up properly
Version 2.0.5
- Brush not found alert shown in admin section when there is code in user comment
- If there is no space between ‘ and ] parser fails
Version 2.0.4
- Allow for options. Hide the toolbar, ruler, etc.
- Select whether to apply the code highlighting to user comments in ‘Settings’ -> ‘SyntaxHighlighter2’
Version 2.0.3
- Added bash (shell, sh) and patch syntax
Version 2.0.2
- Mention license in readme.txt
Version 2.0.1
- GPL credits
Version 2.0.0
- Added support for theming
- Plugin options page to choose the theme
- Added visibility to properties and methods
Version 1.1.1 (SyntaxHighlighter)
- Encode single quotes so
wptexturize()doesn’t transform them into fancy quotes and screw up code.
Version 1.1.0 (SyntaxHighlighter)
- mdawaffe fixed an encoding issue relating to kses and users without the
unfiltered_htmlcapability. Mad props to mdawaffe.
Version 1.0.1 (SyntaxHighlighter)
- Minor CSS fixes.
- Filter text widgets to allow posting of code.
Version 1.0.0 (SyntaxHighlighter)
- Initial release!
Pour les développeurs
Est-ce votre plugin ? Montrez les chiffres.
Ajoutez un badge en direct à votre site, docs ou github readme. Il se met à jour par lui-même - aucun compte n'est nécessaire.
Best SyntaxHighlighter2 alternatives
Tous les plugins de code →FAQ
SyntaxHighlighter2: quick answers
Réponses directes, extraites des données en direct WordPress.org.
Source : WordPress.org
Is SyntaxHighlighter2 free?
Yes. SyntaxHighlighter2 is free to download and use from the official WordPress.org plugin directory.
Is SyntaxHighlighter2 safe to use in 2026?
SyntaxHighlighter2 shows warning signs in 2026 — compare the alternatives below before installing. It runs on 20+ sites and was last updated 17 years ago, and scores 24/100 on our health check.
How many websites use SyntaxHighlighter2?
SyntaxHighlighter2 is active on 20+ WordPress websites and has been downloaded 8,700 times since it launched in March 2009. It was downloaded 51 times in the last 30 days.
Does SyntaxHighlighter2 work with WordPress 7.1?
SyntaxHighlighter2 is officially tested up to WordPress 3.0.0, while the latest release is 7.1.5. It may still work, but try it on a staging site first.
When was SyntaxHighlighter2 last updated?
The latest version, 2.1.2, was released on May 30, 2010 (17 years ago).
Who makes SyntaxHighlighter2?
SyntaxHighlighter2 is developed and maintained by mohanjith.
What are the best alternatives to SyntaxHighlighter2?
The most popular alternatives to SyntaxHighlighter2 are WPCode (3M+ installs), Code Snippets (1M+ installs) and Head & Footer Code (100K+ installs).
Propulsé par PageForge
Un modèle et une feuille de calcul. Une vraie page pour chaque recherche.
PageForge transforme chaque ligne d'un CSV en une page WordPress avec son propre titre, URL, SEO et schéma, construit sur la mise en page que vous Déjà conçu. Gratuit sur WordPress.org.
- CSV et XLSX, plus Google Sheets sur les professionnels et les entreprises
- Son propre titre, URL, SEO champs et schéma pour chaque page
- Fonctionne avec l'éditeur de blocs, Elementor, Divi et Avada
- Gratuit sur WordPress.org, pas de carte de crédit
