Code Syntax Block v3.0.0 delivers 0 blocks. The plugin updates the code
block.
A plugin to extend Gutenberg code block with syntax highlighting
Plugin name and description | Plugin links | Version, total downloads, last update, tested |
---|---|---|
Code Syntax Block Code Syntax Block plugin extends the block editor by adding syntax highlighting to the core… | code-syntax-block home | 3.1.1 117,788 June 24, 2022 6.0.3 |
Notes
- The code syntax block updates the Code – code snippets block.
- It’s a good example of a plugin that uses the
blocks.registerBlockType
filter to alter the settings of an existing block. - The server side logic enqueues the JavaScript that implements the Syntax Highlighting.
- It’s only enqueued for the front end.
- Many languages are supported including: CSS, HTML ( markup ), JavaScript, JSON, PHP, React JSX, SQL, SVG and XML.
- You can choose the Global Color Scheme which applies to all
code
blocks.
echo 'Code is Poetry';
<p>Code is Poetry</p>