Xhtheme Code Block
A plugin to add code blocks with syntax highlighting to your WordPress site, and adapt to the theme's light and dark mode switching.
Consider an alternative
Xhtheme Code Block shows warning signs in 2026 — compare the alternatives below before installing. It runs on 10+ sites and was last updated 1 year ago, and scores 32/100 on our health check.
- Small user base (10+ active installs)
- Very few reviews so far
- No update in over a year
- Only tested up to WordPress 6.8 (latest is 7.1)
How does it stack up?
Side-by-side on installs, updates, ratings & supportDaily downloads
Download spikes usually follow a new release — each site that auto-updates counts as a download.
Rankings
Where Xhtheme Code Block stands todayWordPress.org search rankings
Live position in the plugin search, top 100| Keyword | Position |
|---|---|
| block | >100 |
| code | >100 |
| dark mode | >100 |
| gutenberg | >100 |
| syntax highlighting | >100 |
Version adoption
Share of active sites per release.
About Xhtheme Code Block
From the official readme · v1.0.2Description
Xhtheme Code Block is a plugin for adding code blocks to your WordPress site, supporting syntax highlighting and adapting to the theme’s light and dark mode switching.
- Supports syntax highlighting for multiple programming languages.
- Allows selection of light, dark, or auto mode.
- Supports custom filename display.
External Libraries
-
Alpine.js:
- Version: 3.x.x
- Source: Alpine.js Official Website
- Description: Alpine.js is a lightweight JavaScript framework for adding interactivity to HTML. It is used in the Xhtheme Code Block plugin to manage the reactive state of the settings page, allowing for dynamic updates and user interactions without the need for page reloads.
-
Prism.js:
- Version: 1.x.x
- Source: Prism.js Official Website
- Description: Prism.js is a lightweight, extensible syntax highlighter, built with modern web standards in mind. It is used in the Xhtheme Code Block plugin to provide syntax highlighting for a wide range of programming languages.
Source Code
The source code for build/index.js can be found in the block-code/src directory.
Installation
- Upload the
xhtheme-code-blockfolder to the/wp-content/plugins/directory. - Activate the plugin through the ‘Plugins’ menu in WordPress.
- Configure the plugin options under ‘Settings’ -> ‘Xhtheme Code Block’.
Changelog
Initial release, no special upgrade notes.
1.0.2
Compatible with WordPress 6.8
1.0.1
Fixed potential data sanitization issues.
1.0
- Initial release.
For developers
Is this your plugin? Show off the numbers.
Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.
Best Xhtheme Code Block alternatives
All block plugins →FAQ
Xhtheme Code Block: quick answers
Straight answers, pulled from live WordPress.org data.
Source: WordPress.org
Is Xhtheme Code Block free?
Yes. Xhtheme Code Block is free to download and use from the official WordPress.org plugin directory.
Is Xhtheme Code Block safe to use in 2026?
Xhtheme Code Block shows warning signs in 2026 — compare the alternatives below before installing. It runs on 10+ sites and was last updated 1 year ago, and scores 32/100 on our health check.
How many websites use Xhtheme Code Block?
Xhtheme Code Block is active on 10+ WordPress websites and has been downloaded 1,018 times since it launched in February 2025. It was downloaded 60 times in the last 30 days.
Does Xhtheme Code Block work with WordPress 7.1?
Xhtheme Code Block is officially tested up to WordPress 6.8.13, while the latest release is 7.1.5. It may still work, but try it on a staging site first.
What PHP version does Xhtheme Code Block need?
Xhtheme Code Block requires PHP 7.2 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was Xhtheme Code Block last updated?
The latest version, 1.0.2, was released on September 3, 2025 (1 year ago).
Who makes Xhtheme Code Block?
Xhtheme Code Block is developed and maintained by xhtheme.
What are the best alternatives to Xhtheme Code Block?
The most popular alternatives to Xhtheme Code Block are Spectra Legacy (1M+ installs), Breadcrumb NavXT (700K+ installs) and PDF Embedder (300K+ installs).
Powered by PageForge
One template and a spreadsheet. A real page for every search.
PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.
- CSV and XLSX, plus Google Sheets on Professional and Enterprise
- Its own title, URL, SEO fields and schema for every page
- Works with the block editor, Elementor, Divi and Avada
- Free on WordPress.org, no credit card
