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. Code Snippets Block | Pricing | Support | Live Demos 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 Snippets Block? Publishing code in a normal text editor can make technical content difficult to read and copy. Code Snippets Block turns your code into a structured, highlighted, and copy-ready code block. It is useful for developers, technical writers, educators, bloggers, documentation creators, agencies, and anyone publishing programming content with WordPress. 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. 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! Use Cases 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. What Can You Do With Code Snippets Block? Code Snippets Block helps you publish programming and developer content directly in WordPress. You can use it to: Add syntax-highlighted code to WordPress posts and pages. Create copyable programming examples. Publish coding tutorials. Build developer documentation. Create technical knowledge bases. Display API examples. Present JSON data. Compare different versions of code. Create interactive HTML, CSS, and JavaScript examples. Explain programming code with AI. Create developer-focused portfolio pages. 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 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.
Top keywords
- code45×5.33%
- block19×2.25%
- snippets19×2.25%
- code snippets14×1.66%
- wordpress14×1.66%
- code snippets block12×1.42%
- snippets block12×1.42%
- copy8×0.95%
- programming8×0.95%
- developer7×0.83%
- technical7×0.83%
- examples6×0.71%
Lightbox for Gallery & Image Block
This WordPress Plugin adds a simple & lightweight Lightbox to the standard WordPress Gallery & Image Block. It detects if a post contains a Gallery or Image Block and then loads & initialize baguetteBox.js, a pure JavaScript Lightbox script without any dependencies and a modern minimal look. There is no lock in effect. It does not add a new Block Editor/Gutenberg Block and relies solo on the standard WordPress Gallery and Image Block. You can deactivate this plugin at any time and your Gallery and Image Blocks will work as they’ve done before. Just without the lightbox. Just one important thing to remember: You always have to select Link → Link to image file or Link images to media file (see screenshots below) for all of your Image & Gallery Blocks to work properly. If you choose None or Link to attachment page it will not work. But that’s fine if you don’t want the Lightbox for a specific Image or Gallery. Take a look at the YouTube video from Jakson where he reviews this plugin: Features Here are the features of baguetteBox.js: Written in pure JavaScript No dependencies (e.g. jQuery) Image captions support Responsive Supports swipe gestures Around 13 KB, 7 KB gzipped Works with Gallery Block (Default Block) Image Block (Default Block) Media and Text Block (Default Block) Gallery (Default Classic Editor Gallery) CoBlocks Gallery Collage / Masonry / Offset / Stacked Meow Gallery (+ Gallery Block) Don’t forget to select Link to → Media File for all of your Galleries & Images to work properly. Notice: At the moment, just Blocks inside a post are supported. Not Blocks in a Widget. You can make it work but have to enqueue the necessary style & script yourself. See FAQ –> How to enqueue the necessary assets (script & style) for blocks outside of posts or for block types that are not supported by default?
Top keywords
- block13×4.19%
- gallery12×3.87%
- image9×2.90%
- blocks5×1.61%
- default5×1.61%
- link