Kodosvet Code Block
Lightweight Gutenberg code block with Highlight.js syntax highlighting, smart language detection, and a built-in legacy block migrator.
Mit Vorsicht verwenden
Kodosvet Code Block works, but test it on a staging site before relying on it in 2026. Was last updated 3 months ago, and scores 54/100 on our health check.
- Getestet mit dem neuesten WordPress (7.1)
- Kleine Benutzerbasis (<10 aktive Installationen)
- Bisher sehr wenige Bewertungen
Wie stapelt es sich?
Side-by-side bei Installationen, Updates, Bewertungen und SupportTägliche Downloads
Download-Spitzen folgen normalerweise einer neuen Version - jede Website, die automatisch aktualisiert wird, gilt als Download.
Ranglisten
Where Kodosvet Code Block stands todayWordPress.org Ranglisten suchen
Live-Position in der Plugin-Suche, Top 100| Stichwort | Position |
|---|---|
| code | >100 |
| code block | >100 |
| Entwickler | >100 |
| Gutenberg | >100 |
| syntax highlighting | >100 |
About Kodosvet Code Block
Aus der offiziellen Readme · V1.1.0Beschreibung
Kodosvet Code Block is a zero-bloat Gutenberg block for displaying code with syntax highlighting powered by Highlight.js.
Hauptmerkmale:
- Native Gutenberg Block — Full support for the visual editor with Server-Side Rendering.
- 14 Color Themes — Atom One, GitHub, Monokai, Dracula, Nord, VS Code, Stack Overflow, Night Owl, Gruvbox, Solarized, Panda, Tomorrow Night, Shades of Purple, Tokyo Night.
- Smart Language Detection — Automatic language identification using multi-layered heuristics for PHP, Bash, JavaScript, SQL, JSON, XML, and more.
- Swift Guard — Prevents Highlight.js from misidentifying code as Swift.
- Dark/Light Toggle — Switch all code blocks on the page between dark and light themes with one click.
- Copy to Clipboard — One-click code copying with visual feedback.
- Line Numbers — Toggleable line number gutter.
- Legacy Migrator — Built-in tool to scan and convert old
core/codeandcore/preformattedblocks. - Zero Bloat — Assets are loaded only when a code block is present on the page.
- No jQuery — Pure Vanilla JS on the frontend.
Migrator Tool:
Navigate to Tools → Kodosvet Code Block to scan your site for legacy code blocks and migrate them to the modern Kodosvet format with a before/after preview.
Bibliotheken von Drittanbietern
Syntax highlighting is powered by Highlight.js 11.11.1, bundled locally in vendor/hljs/ (core build + 22 theme stylesheets). Highlight.js is licensed under the BSD-3-Clause License; the unminified source is available at github.com/highlightjs/highlight.js. No external requests are made at runtime.
Installation
- Upload the
kodosvet-code-blockfolder to/wp-content/plugins/. - Aktivieren Sie das Plugin über das „Plugins“-Menü in WordPress.
- In the Block Editor, search for “Kodosvet” to insert a code block.
- Configure default theme and color palette under Tools → Kodosvet Code Block.
Änderungsprotokoll
Plugin renamed to Kodosvet Code Block for the WordPress.org directory. No data migration needed; existing blocks keep working.
1.1.0
- Renamed: plugin is now “Kodosvet Code Block” (slug
kodosvet-code-block). Internal identifiers (block namestodum/code-block, option names, CSS classes) are unchanged so existing content keeps working. - Removed: bundled translation files and
load_plugin_textdomain()— translations are handled by translate.wordpress.org. - Changed:
register_setting()sanitize callbacks usesanitize_key()+ strict whitelist comparison.
1.0.9
- Fixed: Migrator preview modal showed “undefined (undefined blocks)” instead of the post title and block count.
- Fixed: Missing translator comments and unescaped output flagged by Plugin Check;
$wpdb->prepare()call inlined. - Changed: Highlight.js script/style handles are now prefixed (
stodum-hljs-*) to avoid clashes with other plugins. - Changed: Block title now has a small gap from the brand label in the toolbar.
- Added:
Author URI,License URI, LICENSE file for the bundled Highlight.js, “Third-Party Libraries” section in readme. - Added: JS translation JSON for the block editor (
wp i18n make-json); POT/ru_RU refreshed. - Tested up to WordPress 7.0.
1.0.8
- Changed: Highlight.js is now bundled locally (vendor/hljs/). CDN dependency removed. Plugin is now fully self-contained and compatible with WordPress.org guidelines.
1.0.7
- Fixed: Block now uses
get_block_wrapper_attributes()for proper wide/full alignment support. - Fixed: Migrator creates revisions via
wp_update_post(). - Fixed: Migrate All AJAX array serialization.
- Fixed: All editor strings now translatable.
- Added:
uninstall.phpfor clean removal. - Removed: Debug console.log output.
1.0.6
- Fixed: Complete rewrite of editor language detection with working Smart Heuristics.
1.0.5
- Added: Smart Language Heuristics for PHP, Bash, JavaScript.
Screenshots
Für Entwickler
Ist das dein Plugin? Zeigen Sie die Zahlen.
Fügen Sie Ihrer Website, Docs oder GitHub Readme ein Live-Badge hinzu. Es wird von selbst aktualisiert - kein Konto erforderlich.
Best Kodosvet Code Block alternatives
All code plugins →Fragen und Antworten
Kodosvet Code Block: quick answers
Gerade Antworten, gezogen von Live WordPress.org Daten.
Quelle: WordPress.org
Is Kodosvet Code Block free?
Yes. Kodosvet Code Block is free to download and use from the official WordPress.org plugin directory.
Is Kodosvet Code Block safe to use in 2026?
Kodosvet Code Block works, but test it on a staging site before relying on it in 2026. Was last updated 3 months ago, and scores 54/100 on our health check.
How many websites use Kodosvet Code Block?
Kodosvet Code Block is active on <10 WordPress websites and has been downloaded 249 times since it launched in August 2026. It was downloaded 59 times in the last 30 days.
Does Kodosvet Code Block work with WordPress 7.1?
Yes. The developer has tested Kodosvet Code Block up to WordPress 7.1.5, the latest release. It requires WordPress 6.0 or newer.
What PHP version does Kodosvet Code Block need?
Kodosvet Code Block requires PHP 7.4 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was Kodosvet Code Block last updated?
The latest version, 1.1.0, was released on August 25, 2026 (3 months ago).
Who makes Kodosvet Code Block?
Kodosvet Code Block is developed and maintained by kotophalk.
What are the best alternatives to Kodosvet Code Block?
The most popular alternatives to Kodosvet Code Block are WPCode (3M+ installs), Code Snippets (1M+ installs) and Head & Footer Code (100K+ installs).
Angetrieben von PageForge
Eine Vorlage und eine Tabelle. Eine echte Seite für jede Suche.
PageForge Verwandelt jede Zeile eines CSV in eine WordPress-Seite mit eigenem Titel, URL, SEO Felder und Schema entworfen. Kostenlos auf WordPress.org.
- CSV und XLSX, plus Google Sheets auf Beruf und Unternehmen
- seinen eigenen Titel, URL, SEO Felder und Schema für jede Seite
- Arbeitet mit dem Blockeditor, Elementor, Divi und Avada
- Kostenlos auf WordPress.org, keine Kreditkarte
