Code Block – share beautiful code snippets readers can copy
Turn plain code into beautifully highlighted, copy-ready snippets your readers will love – right inside the Gutenberg editor.
Escolha sólida
Code Block is a solid plugin choice in 2026, with a few things worth checking first. It runs on 200+ sites and was last updated 2 weeks ago, and scores 69/100 on our health check.
- Desenvolvido ativamente — última atualização 2 semanas atrás
- Testado com as últimas WordPress (7.1)
- Momentum — downloads up 107.6% vs the previous 30 days
- Pequena base de usuários (mais de 200 instalações ativas)
- Muito poucos comentários até agora
Como ele se acumula?
Lado a lado em instalações, atualizações, avaliações e suporteDownloads diários
Os picos de download geralmente seguem uma nova versão — cada site que atualiza automaticamente é um download.
Rankings
Where Code Block stands todayWordPress.org Classificações de pesquisa
Posição ao vivo na pesquisa de plugins, top 100| Palavra chave | Posição |
|---|---|
| code block | >100 |
| Code Highlight | #23 |
| code-snippets | #32 |
| Gutenberg block | >100 |
| syntax highlighting | #61 |
Adoção da versão
Compartilhamento de sites ativos por lançamento.
About Code Block
From the official readme · v1.1.7Descrição
Turn plain code into beautifully highlighted, copy-ready snippets your readers will love – right inside the Gutenberg editor.
Code Snippets Block | Pricing | Support | Live Demos
Code Block helps you present programming code with syntax highlighting, visual themes, and copy-to-clipboard controls. Use it to explain code, publish technical tutorials, share API examples, and build documentation for your WordPress website.
What Is Code Snippets Block?
Code Snippets Block is a lightweight WordPress code block plugin for displaying programming code with syntax highlighting, copy-to-clipboard functionality, responsive layouts, and multiple visual themes.
Add clean and readable code examples to WordPress posts, pages, documentation, tutorials, developer portfolios, knowledge bases, and technical websites without writing custom code.
The plugin works directly with the WordPress Gutenberg Block Editor and supports popular programming languages including PHP, JavaScript, Python, HTML, CSS, JSON, and SQL.
Why Use Code Block?
Code examples are easier to read and reuse when they are properly formatted.
Code Block can help you:
- Display syntax-highlighted programming code.
- Add a copy button to code examples.
- Publish code tutorials in WordPress.
- Create developer documentation.
- Display API requests and responses.
- Present JSON data.
- Compare different versions of code.
- Create interactive HTML, CSS, and JavaScript examples.
- Explain programming concepts with AI.
- Create technical knowledge bases.
- Showcase code on developer portfolio websites.
Free Features
- One-Click Copy Button: Readers copy the entire snippet to their clipboard in a single click, with customizable text/icon.
- Multiple Syntax Themes: Choose from pre-styled themes (like Dark, Midnight, and Light) to match your website design.
- Syntax Highlighting: Improve readability for all major languages – PHP, JavaScript, Python, HTML, CSS, and more.
- Responsive Code Views: Snippets wrap and resize smoothly on mobile, tablet, and desktop.
- Shortcode Support: Embed code snippets anywhere on your site.
- Dedicated Block Category: All blocks are grouped under a “Code” category in the Gutenberg inserter for easy access.
- Optimized & Lightweight: Assets load only when a block is on the page, with minimal impact on page speed.
Pro Version
Upgrade to Pro to unlock a suite of 16 interactive developer blocks:
- Run Python (WASM): A live Python interpreter powered by Pyodide (WebAssembly) that runs in the reader’s browser – no server-side execution, lazy-loaded for speed.
- Code Screencast (Self-Typing): Animated, character-by-character typing walkthroughs.
- JSON Explorer: Interactive, collapsible, searchable JSON tree views with match-highlighting and copy-path tools.
- Regex Tester: A live regular-expression sandbox with highlighted match output.
- Spotlight Code: Walk readers through specific lines by dimming or blurring the rest, with captioned steps.
- Code Snapshot: Turn snippets into mockup graphics with window chrome, gradients, and shadows – download as PNG or copy image.
- API Try-It Console: A functional HTTP/REST client block for live requests with timing, status, and formatted responses.
- Annotated Code: Clickable badges on specific lines that reveal detailed explanations.
- AI Code Explainer: Generate plain-English explanations using OpenAI or Anthropic inside the editor.
- Diagram as Code: Write Mermaid text and render flowcharts, sequence diagrams, class diagrams, Gantt charts, and pie charts.
- Live Code Playground: An HTML/CSS/JS sandbox in a secure iframe with instant visual previews.
- Code Diff / Comparison: Highlight added/removed lines in Unified or Split view.
- Multi-Tab Code Switcher: Organize snippets under tabs (e.g. npm vs yarn, or JavaScript vs PHP).
- Terminal / Command Line: A styled shell emulator with typing animations and one-click copy of commands.
- Remote Code Embed: Fetch code from GitHub Gists, raw files, or CodePen pens, styled in your own theme.
- Advanced Code Block Styling: Custom colors, font sizes, paddings, borders, shadows, alignment, and line numbering.
- Code Analytics (new in 1.1.6): See which snippets readers view and copy – copy rate, copies by language, devices and “problem snippets” – with CSV export and optional GA4 / GTM copy events. Cookie-free, daily totals only.
Syntax Highlighting
Display programming code with syntax highlighting to make code easier to read and understand.
Supports popular languages including:
- PHP
- JavaScript
- Python
- HTML
- CSS
- JSON
- SQL
- And more
Terminal and Command Line
Display command-line examples in a terminal-style interface with copy controls and optional typing animations.
Remote Code Embed
Display code from supported external sources such as GitHub Gists, raw files, or CodePen. Use remote code embeds when you want to maintain or reference code from an external source.
One-Click Copy Code
Add a copy button so visitors can copy an entire code snippet to their clipboard with one click. The copy button text and icon can be customized from the block settings.
Diagram as Code
Write Mermaid syntax and display diagrams such as:
- Flowcharts
- Sequence diagrams
- Class diagrams
- Gantt charts
- Pie charts
Live Code Playground
Create interactive HTML, CSS, and JavaScript examples inside a secure iframe with live previews.
Programming Tutorials
Publish step-by-step tutorials with readable and copyable code examples.
Code Diff and Comparison
Compare two versions of code using a unified or split comparison view.
Useful for:
- Before and after examples
- Code reviews
- Version comparisons
- Tutorial explanations
- Documentação
Multi-Tab Code Examples
Organize multiple code examples inside tabs.
Por exemplo:
- JavaScript / PHP
- npm / yarn
- HTML / CSS
- Before / After
- REST API examples
Advanced Code Styling
Customize code presentation with advanced styling options such as:
- Colors
- Font sizes
- Padding
- Borders
- Shadows
- Alignment
- Line numbers
Casos de uso
- Programming Tutorials: Make your snippets easy to read and copy.
- Developer Documentation: Keep code examples clean and consistent.
- Developer Portfolios: Showcase your clean code with pride.
- Technical Knowledge Bases: Present reference code in a professional format.
- Educational Coding Resources: Help students follow along and copy examples.
- API Documentation : Display request examples, JSON responses, commands, and other API-related code.
Who Is Code Snippets Block For?
Code Snippets Block is designed for:
- WordPress developers
- Web developers
- Programming bloggers
- Technical writers
- Documentation teams
- Online educators
- Coding tutorial creators
- Developer portfolio owners
- Software agencies
- Technical knowledge-base websites
Happy User of Code Block?
- Join our Facebook Community Group
- Learn from our tutorials on YouTube Channel
- Or rate Code Block on WordPress
How to Create a Code Tutorial in WordPress
For a tutorial, you can combine regular Gutenberg content with Code Block.
A typical tutorial can include:
- An explanation of the problem.
- A code example.
- A copy button for the example.
- An explanation of how the code works.
- An interactive example when needed.
- A final result or expected output.
This structure works well for programming tutorials, documentation, and educational content.
How to Use
- Install and activate the Code Snippets Block plugin.
- In the Gutenberg editor, add the Code Snippets block.
- Paste your code and pick a syntax theme.
- Adjust settings from the right-side settings sidebar.
- Publish – your highlighted, copy-ready snippet is live!
How to Add Code with Shortcode
Code Snippets Block also supports shortcode-based embedding.
- Create your code snippet.
- Copy the generated shortcode.
- Paste the shortcode into a shortcode-supported area.
- Save or publish the page.
This allows you to display code snippets in different areas of your WordPress website.
Liked this plugin? Want a new feature? Send us some feedback.
⭐ Check out the Parent Plugin of this plugin-
🔥 b Blocks – Best gutenberg blocks collections for WordPress.
⭐ Check out our other WordPress Plugins-
🔥 Html5 Audio Player – Best audio player plugin for WordPress.
🔥 Html5 Video Player – Best video player plugin for WordPress.
🔥 PDF Poster – A fully-featured PDF Viewer Plugin for WordPress.
🔥 StreamCast – A fully-featured Radio Player Plugin for WordPress.
🔥 3D Viewer – Display interactive 3D models on the webs.
Instalação
From your WordPress dashboard (recommended):
- Go to Plugins → Add New.
- Search for “Code Snippets Block”.
- Click Install Now, then Activate.
- Add the Code Snippets block to any post or page in the Gutenberg editor.
Instalação manual:
- Download the Code Snippets Block plugin (.zip file).
- In your admin area, go to Plugins → Add New and click Upload Plugin.
- Choose the
code-snippets-block.zipfile and click Install Now. - Ative o plugin através do menu plugins em WordPress.
Log de Changes
remove extra double " ;
1.1.7 – 17 November, 2026
- Added: Discount Promo Banner in Dashboard.
1.1.6 – 15 November, 2026
- New (Pro): Code Analytics dashboard (Code Snippets → Analytics) – views, copies and copy rate for every code block and snippet, copies by language, devices, engagement by block and “problem snippets” (many views, almost no copies).
- New (Pro): CSV export and optional GA4 / Google Tag Manager
code_copyevents. - New: “Copies (30 days)” and “Used in” columns in the Code Snippets list, with a 30-day copy total on the Analytics page for free users.
- New: Duplicate action for code snippets – creates a draft copy with all settings in one click.
- Privacy: analytics stores only daily totals – no cookies, no IP addresses; Do Not Track is respected and bots, editors and admins are not counted.
- Improved: all analytics database queries are fully prepared (WordPress Plugin Check compliant).
1.1.5 – 13 July, 2026
- Fixed plugin editor page install issue.
- Some Assets optimization and performance issue fixed.
1.1.4 – 12 July, 2026
- Added dynamic assets loading.
- Fixed assets loading issues.
1.1.3 – 5 July, 2026
- Updated all code blocks.
- Fixed plugin register issue.
1.1.2 – 29 June, 2026
- Updated Dashboard for showcase blocks
- Run Python (WASM) block and JSON Explorer block responsive issues fixed
Capturas de tela
Para desenvolvedores
Este é o seu plugin? Mostre os números.
Adicione um crachá ao vivo ao seu site, Documentos ou Readme do GitHub. Ele é atualizado por conta própria - nenhuma conta necessária.
Best Code Block alternatives
All code block plugins →FAQ
Code Block: quick answers
Respostas diretas, extraídas de dados ao vivo WordPress.org.
Fonte: WordPress.org
Is Code Block free?
Yes. Code Block is free to download and use from the official WordPress.org plugin directory.
Is Code Block safe to use in 2026?
Code Block is a solid plugin choice in 2026, with a few things worth checking first. It runs on 200+ sites and was last updated 2 weeks ago, and scores 69/100 on our health check.
How many websites use Code Block?
Code Block is active on 200+ WordPress websites and has been downloaded 7,735 times since it launched in April 2025. It was downloaded 1,173 times in the last 30 days.
Does Code Block work with WordPress 7.1?
Yes. The developer has tested Code Block up to WordPress 7.1.5, the latest release. It requires WordPress 6.5 or newer.
What PHP version does Code Block need?
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 Code Block last updated?
The latest version, 1.1.7, was released on November 17, 2026 (2 weeks ago).
Who makes Code Block?
Code Block is developed and maintained by bPlugins.
What are the best alternatives to Code Block?
The most popular alternatives to Code Block are Highlighting Code Block (10K+ installs), Code Block Copy Button (100+ installs) and Easy Syntax Highlighter (30+ installs).
Alimentado por PageForge
Um modelo e uma planilha. Uma página real para cada pesquisa.
PageForge Transforma cada linha de um CSV em uma página WordPress com seu próprio título, URL, SEO campos e esquema, construído no layout que você já desenhou. Gratuito em WordPress.org.
- CSV e XLSX, mais Google Sheets em Profissional e Empresarial
- Seu próprio título, URL, SEO campos e esquema para cada página
- Funciona com o editor de blocos, Elementor, Divi e Avada
- Gratuito em WordPress.org, sem cartão de crédito
