single-oik-plugins.html

Code Syntax Block

Code Syntax Block v3.0.0 delivers 0 blocks. The plugin updates the code block.

code-syntax-block

A plugin to extend Gutenberg code block with syntax highlighting

Plugin name and descriptionPlugin linksVersion, total downloads, last update, tested
Code Syntax Block
Code Syntax Block plugin extends the block editor by adding syntax highlighting to the core code block.
3.1.1
113,547
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>

Published:

Last updated:

February 6, 2022

Information

Letters:

Summary file