Prism Syntax Highlighter (detached)
Adds Prism Syntax Highlighting to WordPress, using custom fields for your code examples.
Envisager une alternative
Prism Syntax Highlighter (detac… shows warning signs in 2026 — compare the alternatives below before installing. It runs on 10+ sites, is rated 5/5 and was last updated 13 years ago, and scores 30/100 on our health check.
- Petite base d'utilisateurs (plus de 10 installations actives)
- Très peu de critiques jusqu'à présent
- Pas de mise à jour dans 13 ans
- Uniquement testé jusqu'à WordPress 3,5 (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 Prism Syntax Highlighter (d… stands todayWordPress.org Classements de recherche
Position en direct dans la recherche de plugins, Top 100| Mot-clé | Position |
|---|---|
| prism | #74 |
| syntax highlighting | >100 |
Adoption de version
Part de sites actifs par version.
Répartition des notes
★★★★★ ★★★★★ 5 sur 3 avis
About Prism Syntax Highlighter (detached)
À partir du Lisez-moi officiel · v1.5Description
Integrates the Prism Syntax Highlighting Library in WordPress.
It is called detached, since the code examples are not stuffed into the rich text editor, together with all the
other texts and content, but they are added separately as custom fields and just referenced via short tags (like footnotes).
Check Other Notes for usage documentation.
The official development repository is hosted on Github.
Usage
The basic procedure is:
- Create a custom field and paste the code into it.
- Insert the
[prism ...]shorttag in your code, where you want the code block to appear.
Shorttag
[prism key=".." language=".." line=".." line_offset=".." post=".."]
key: the name of the custom field, which contains the code (required)language: the language to highlightline: highlighted lines (for syntax, check the offical docs)line_offset: the offset, with which the line numbering should startpost: if you want to include a code piece of another post, you can explicitly specify the post id here
Cached Assets loader
The plugin includes (from v1.3 on) a cached assets loader, so that all needed assets are concatenated into
one js and one css file to minimize the HTTP requests.
To make use of the cached assets loader, just create a directory /cache/ inside your plugin directory and make it writable for PHP.
Supported languages
Only the ones from the official PrismJS repository
- bash (Bash Unix Shell)
- c
- clike
- coffeescript
- cpp (C++)
- css
- groovy
- java
- Javascript
- markup (like: xHTML, MathML, SVG, LaTeX, RSS, XML, OWL, etc.)
- php
- python
- scss (Sassy CSS)
- sql
Creating Custom Extensions
Please read the wiki page: Creating A Custom Extension.
Installation
- Upload the files to your
/wp-content/plugins/directory - Activez le plugin via le menu « Plugins » dans WordPress
Journal de modifications
No upgrade notice yet, just use it and give feedback. :-)
1.5
- Updated PrismJS to commit: 07c0f4f6b2
- Added plugin descriptions
- Added new plugins: File Highlight, WebPlatform Docs
- Added language-code descriptions
- Added new languages: Bash (Unix Shell), C, C-like, Coffeescript, C++, Groovy, PHP, Python, Sassy CSS, and SQL
- Added new themes: Okaida, Tomorrow, Twilight
** 1.5 update brought to you by JC John Sese Cuneta (http://jcsesecuneta.com) ** thank you!
1.4
- Fixed a compatibility problem with older PHP versions (< 5.4)
1.3
- Minor optical updates of the admin interface
- Refactored nearly complete plugin
- Added support for generic extensions
- Added cached assets loader
- Added support for experimental PHP plugin
1.2
- Updated the prism library to
34f0bd5247
1.1
- Load line-highlight correctly
- Moved html attributes to the correct tag
- Fixed wrong asset loading
1.0
- Initial commit
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 Prism Syntax Highlighter (det… alternatives
All prism plugins →FAQ
Prism Syntax Highlighter (detached): quick answers
Réponses directes, extraites des données en direct WordPress.org.
Source : WordPress.org
Is Prism Syntax Highlighter (detac… free?
Yes. Prism Syntax Highlighter (detac… is free to download and use from the official WordPress.org plugin directory.
Is Prism Syntax Highlighter (detac… safe to use in 2026?
Prism Syntax Highlighter (detac… shows warning signs in 2026 — compare the alternatives below before installing. It runs on 10+ sites, is rated 5/5 and was last updated 13 years ago, and scores 30/100 on our health check.
How many websites use Prism Syntax Highlighter (detac…?
Prism Syntax Highlighter (detac… is active on 10+ WordPress websites and has been downloaded 3,346 times since it launched in September 2012. It was downloaded 52 times in the last 30 days.
Does Prism Syntax Highlighter (detac… work with WordPress 7.1?
Prism Syntax Highlighter (detac… is officially tested up to WordPress 3.5.2, while the latest release is 7.1.5. It may still work, but try it on a staging site first.
When was Prism Syntax Highlighter (detac… last updated?
The latest version, 1.5, was released on July 30, 2013 (13 years ago).
Who makes Prism Syntax Highlighter (detac…?
Prism Syntax Highlighter (detac… is developed and maintained by apfelbox.
What are the best alternatives to Prism Syntax Highlighter (detac…?
The most popular alternatives to Prism Syntax Highlighter (detac… are APH Prism Syntax Highlighter (90+ installs), AH Code Highlighter (50+ installs) and WP Prism Syntax Highlighter (30+ 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





