🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Conta Get it free
Code Block – share beautiful code snippets readers can copy icon
Manutenção ativamente Testado com WP 7.1 #2 in code block

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.

Instalações ativas200+100+ nível
Downloads · 30d1.2K▲ +107.6% vs prev. 30d
Classificação—0 comentários
Pontuação da saúde69/100Bom
Downloads de todos os tempos7.7KSince Apr 2025
Suporte resolvido—Sem tópicos recentes
RequerWP 6.5Php 7.4+
Downloads · 7d250▼ -51.5% week over week
Nosso veredicto

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 suporte

Downloads diários

3979118Aug 31Oct 14Nov 28
Ontem15
Média diária (1y)16
Dia de pico158Nov 15, 2026
Últimos 12 meses5.7K

Os picos de download geralmente seguem uma nova versão — cada site que atualiza automaticamente é um download.

Rankings

Where Code Block stands today

WordPress.org Classificações de pesquisa

Posição ao vivo na pesquisa de plugins, top 100
Palavra chavePosiçãoPlugins concorrentesCategoria
code block >100 10,000 Best code block plugins →
Code Highlight #23 2,293 Best Code Highlight plugins →
code-snippets #32 2,352 Best code-snippets plugins →
Gutenberg block >100 7,354 Best Gutenberg block plugins →
syntax highlighting #61 365 Best syntax highlighting plugins →

Adoção da versão

Compartilhamento de sites ativos por lançamento.

  • 1.167.7%
  • 1.032.3%

About Code Block

From the official readme · v1.1.7

Descriçã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?

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:

  1. An explanation of the problem.
  2. A code example.
  3. A copy button for the example.
  4. An explanation of how the code works.
  5. An interactive example when needed.
  6. A final result or expected output.

This structure works well for programming tutorials, documentation, and educational content.

How to Use

  1. Install and activate the Code Snippets Block plugin.
  2. In the Gutenberg editor, add the Code Snippets block.
  3. Paste your code and pick a syntax theme.
  4. Adjust settings from the right-side settings sidebar.
  5. Publish – your highlighted, copy-ready snippet is live!

How to Add Code with Shortcode

Code Snippets Block also supports shortcode-based embedding.

  1. Create your code snippet.
  2. Copy the generated shortcode.
  3. Paste the shortcode into a shortcode-supported area.
  4. 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):

  1. Go to Plugins → Add New.
  2. Search for “Code Snippets Block”.
  3. Click Install Now, then Activate.
  4. Add the Code Snippets block to any post or page in the Gutenberg editor.

Instalação manual:

  1. Download the Code Snippets Block plugin (.zip file).
  2. In your admin area, go to Plugins → Add New and click Upload Plugin.
  3. Choose the code-snippets-block.zip file and click Install Now.
  4. 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_copy events.
  • 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

Registro de change completo em WordPress.org →

Capturas de tela

Plugin dashboard with demos, block manager and getting-started guides.
Plugin dashboard with demos, block manager and getting-started guides.
Beautiful, syntax-highlighted code with a one-click copy button (free).
Beautiful, syntax-highlighted code with a one-click copy button (free).
Simple Code block settings in the block editor: language, theme, line numbers, word wrap and copy button.
Simple Code block settings in the block editor: language, theme, line numbers, word wrap…
12 syntax themes: 6 free and 6 Pro
12 syntax themes: 6 free and 6 Pro
Code Snippets library: a shortcode for every snippet, 30-day copy count, and one-click Duplicate.
Code Snippets library: a shortcode for every snippet, 30-day copy count, and one-click…
16 Pro developer blocks for tutorials, documentation and developer sites.
16 Pro developer blocks for tutorials, documentation and developer sites.
Pro: Multi-Tab Code Switcher and Terminal / Command Line with copy-commands-only.
Pro: Multi-Tab Code Switcher and Terminal / Command Line with copy-commands-only.
Pro: Code Walkthrough, Spotlight Code and Annotated Code for step-by-step teaching.
Pro: Code Walkthrough, Spotlight Code and Annotated Code for step-by-step teaching.
Pro: Run Python in the browser (WebAssembly) and the API Try-It Console with real responses.
Pro: Run Python in the browser (WebAssembly) and the API Try-It Console with real…

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.

Selo de Instalações Ativas Selo de classificação Distintivo de pontuação de saúde

Best Code Block alternatives

All code block plugins →
Alternativas
Classificação Plugin Instalações ativas Classificação Atualizada Saúde
1 Highlighting Code Block Highlighting Code Block Add code block with syntax highlighting using prism.js. (Available for Gutenberg and… by LOOS 10K+ ★★★★★★★★★★ 4.5 (20) 5 meses atrás 62
3 Code Block Copy Button Code Block Copy Button Add a customizable copy button to code blocks for fast, one-click copying. by tcstix 100+ ★★★★★★★★★★ Sem comentários 5 meses atrás 53
4 Easy Syntax Highlighter Easy Syntax Highlighter Modern, lightweight syntax highlighter for WordPress using Highlight.js by tiptinker 30+ ★★★★★★★★★★ Sem comentários 8 meses atrás 28
5 DBlocks CodePro DBlocks CodePro Advanced Custom HTML Block and Code Syntax Highlightering for sharing code snippets and… by DPlugins 10+ ★★★★★★★★★★ 5 (1) 1 mês atrás 64
6 Syntax Highlight Nano Syntax Highlight Nano Adds modern syntax highlighting to WordPress's standard code block using the robust… by Takashi Fujisaki 10+ ★★★★★★★★★★ Sem comentários 2 meses atrás 62
7 Plum Code Box Plum Code Box Plum Code Box makes it easy to insert and manage code blocks using the Chili javascript… by jtgraphic 10+ ★★★★★★★★★★ Sem comentários 16 anos atrás 23
8 Nahnu Code & API Block Nahnu Code & API Block A block suite for developer documentation: syntax-highlighted code snippets plus a full set… by Jaime Alnassim 10+ ★★★★★★★★★★ Sem comentários 2 semanas atrás 66
9 codefence.io codefence.io codefence.io is an easy to embed editor and compiler for over 20 server-side programming… by benphelps 10+ ★★★★★★★★★★ Sem comentários 7 anos atrás 23
10 LumiCode Syntax Highlighter LumiCode Syntax Highlighter Beautiful syntax highlighting for WordPress: 40+ languages, copy buttons, line numbers… by cr8vstacks 10+ ★★★★★★★★★★ Sem comentários 2 meses atrás 57
11 Kodosvet Code Block Kodosvet Code Block Lightweight Gutenberg code block with Highlight.js syntax highlighting, smart language… by kotophalk <10 ★★★★★★★★★★ Sem comentários 3 meses atrás 54

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

↑↓ mover↵ abrir