The Coder Block plugin allows embedding php code inside of posts and pages within the new Block Editor.
Alternatives to Code Block ScratchPad
Plugins below are selected for functional relevance and current directory signals. Active-install counts do not affect this ranking.
WordPress plugins with similar use cases
Compatibility and update metadata provide context, not a quality guarantee. Review each plugin’s details for your site.
Detect PHP error spikes, recurring patterns, request impact and source-version changes with grouped local diagnostics.
Add CSS, JavaScript, PHP and HTML code snippets to your site.
Easily add code snippets in WordPress. Insert header & footer scripts, add PHP code snippets with conditional logic, insert ads pixel code, and more.
Create syntax-highlighted, copy-ready code snippets in Gutenberg with responsive layouts, themes, and shortcode support.
Automatically adds a lightweight, accessible Copy button to every Gutenberg code block. No shortcodes, no database changes.
Extending the Code block with syntax highlighting rendered on the server, thus being AMP-compatible and having faster frontend performance.
Modern, lightweight syntax highlighter for WordPress using Highlight.js
Code block with syntax highlighting for gutenberg editor.