Add code block with syntax highlighting using prism.js. (Available for Gutenberg and Classic Editor)
Alternatives to Code Block
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.
Create syntax-highlighted, copy-ready code snippets in Gutenberg with responsive layouts, themes, and shortcode support.
Adds modern syntax highlighting to WordPress's standard code block using the robust highlight.js library.
Modern, lightweight syntax highlighter for WordPress using Highlight.js
Extending the Code block with syntax highlighting rendered on the server, thus being AMP-compatible and having faster frontend performance.
Beautiful syntax highlighting for WordPress: 40+ languages, copy buttons, line numbers, line wrapping, collapse and a dark or light theme.
WpBetterCodeHighlighting allows you to show code snippets in over 290+ languages. Its completly free and perfect for blog/tutorial sites.
This plugin allows you very simply syntax highlight source code in your content using highlight.js or google-code-prettify libraries.
A block suite for developer documentation: syntax-highlighted code snippets plus a full set of API-documentation blocks. Website | Documentation | See …
Lightweight Gutenberg code block with Highlight.js syntax highlighting, smart language detection, and a built-in legacy block migrator.