Code Markup
Code Markup is a WordPress plugin that makes it easy to include program code samples in your posts. You can even include HTML markup in the code sample; Code Markup magically knows which characters should be displayed…
Envisager une alternative
Code Markup shows warning signs in 2026 — compare the alternatives below before installing. It runs on 200+ sites and was last updated 19 years ago, and scores 26/100 on our health check.
- Petite base d'utilisateurs (plus de 200 installations actives)
- Très peu de critiques jusqu'à présent
- No update in 18 years
- Only tested up to WordPress 2.5 (latest is 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 Code Markup stands todayWordPress.org Classements de recherche
Position en direct dans la recherche de plugins, Top 100| Mot-clé | Position |
|---|---|
| code | >100 |
| format | >100 |
| html.xml | #1 |
| java | >100 |
| markup | >100 |
Adoption de version
Part de sites actifs par version.
About Code Markup
À partir du Lisezmoi officiel · v1.3Description
Code Markup is a WordPress plugin that makes it easy to include program code samples in your posts. You can even include HTML markup in the code sample; Code Markup magically knows which characters should be displayed as code and which should be rendered as HTML.
The plugin works by escaping most special HTML tags and characters so they display exactly as typed, but leaving certain ones alone so they will render as normal HTML. The default set of allowed tags is the standard formatting tags like em, strong, span and so on. You can control this explicitly, or implicitly by specifying the language of the code block. For example, in a normal code block, <em> will be rendered as emphasised text, but in an HTML code block, <em> will be displayed as <em>.
(I have to use square brackets instead of angle brackets because of the WordPress Extend site formatting.)
USAGE
-
Enclose any code inside a <code> block.
-
Use <code markup=”…” lang=”…”> to specify appearance of code.
- Include any HTML markup you like in the code, for example to add emphasis to certain sections.
- Separate <code> blocks should be nested within a <pre> block to preserve whitespace.
-
If you want to fine-tune how Code Markup treats your code, use the markup and lang attributes on the code tag to specify how Code Markup should handle it.
- <code> or <code markup=”default”> allows common HTML tags to be rendered, and displays everything else exactly as written.
- <code markup=”none”> displays content exactly as written ? no markup is rendered.
- <code markup=”all”> renders content as HTML ? all markup is rendered.
- <code markup=”em strong a”> treats <em>, <strong> and <a> tags as HTML markup ? everything else is displayed exactly as written. You can put whatever tags you like in the markup attribute, separated by spaces. As a special case, you can include the comment tag ? this means that HTML comments <!– like this –> will be ?rendered? as normal HTML comments (i.e. not displayed).
- <code lang=”html”> or <code lang=”xhtml”> displays content exactly as written, the same as <code markup=”none”>.
-
The markup attribute overrides the lang attribute.
-
Separate <code> blocks should be nested within a <pre> block to
preserve whitespace.
Installation
- Copy code-markup.php into your WordPress plugins directory (wp-content/plugins).
- Log in to WordPress Admin. Go to the Plugins page and click Activate for Code Markup.
- Go to the Options page and click Writing. Make sure “WordPress should correct invalidly nested XHTML automatically” is NOT checked. (Otherwise it may do funny things to your code listings.)
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 Code Markup alternatives
Tous les plugins de code →FAQ
Code Markup: quick answers
Réponses directes, extraites des données en direct WordPress.org.
Source : WordPress.org
Is Code Markup free?
Yes. Code Markup is free to download and use from the official WordPress.org plugin directory.
Is Code Markup safe to use in 2026?
Code Markup shows warning signs in 2026 — compare the alternatives below before installing. It runs on 200+ sites and was last updated 19 years ago, and scores 26/100 on our health check.
How many websites use Code Markup?
Code Markup is active on 200+ WordPress websites and has been downloaded 21,888 times since it launched in May 2005. It was downloaded 151 times in the last 30 days.
Does Code Markup work with WordPress 7.1?
Code Markup is officially tested up to WordPress 2.5, while the latest release is 7.1.5. It may still work, but try it on a staging site first.
When was Code Markup last updated?
The latest version, 1.3, was released on April 14, 2008 (19 years ago).
Who makes Code Markup?
Code Markup is developed and maintained by bennettmcelwee.
What are the best alternatives to Code Markup?
The most popular alternatives to Code Markup 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
