











“Highlighting Code Block” allows you to add a syntax-highlighted code block with just a click.
It supports both “Block Editor” and “Classic Editor”.
(However, we recommend using it in the “Block Editor”.)
Please see this page for a detailed description of this plugin.(Japanese article)
How to use (For Block Editor)
- Open the “Formatting” category of the Block Inserter.
- There is a custom block named “Highlighing Code Block”.
- Select it, the block will be inserted.
- Select the language of the code and enter any code.
How to use (For Classic Editor)
- You should see a select box labeled “Code Block” on the toolbar (2nd row by default).
- When you select a language from the select box, a code block (pre tag) is inserted.
If it doesn’t work
This plugin works only with PHP version 5.6 or later, WordPress 5.6 or later.
Please check your PHP version or WordPress version.
About settings
The menu “[HCB] Settings” should be added to “Settings” in the left menu of the management screen.
Settings related to this plugin are set in this menu.
A+ Once I figured out the BLOCKS part!
By Sagehen Studio (sagehen) on July 25, 2023
I don't normally use WP Blocks and so I could not figure out why this plugin broke for certain code syntax (PHP -> HTML -> PHP for example) and why saving sometimes broke the previously-saved syntax. Maddening. Then I switched back to the block editor. AHA! It works beautifully. That's probably why it says "Block" in the plugin name, duh. Thank you very much for this wonderful plugin. I love that we can also upload our own prism.js files. Cool.
Thank you!
By Muhammad Zohaib (fangsword) on March 3, 2023
Exactly what I was looking for. thanks alot!
I use this plugin a lot
By Shihab Ul Haque (shihab0915) on November 26, 2022
Good Effort, Keep up the work ♥
By Ibrahim Sharif (shuvoaftab) on November 8, 2022
Difficult to use
By namelyjt on October 9, 2022
in love
By flinnn on November 1, 2021
很棒的代码高亮插件
By 张家亮 (bedroomyourfa) on October 27, 2021
Very useful
By Muhammad Ayoub (mohammadayoub96) on June 29, 2021
Excellent plugin
By Renzo Castillo (renzocastillo) on May 30, 2021
Best Plugin
By Senri Miura (senribb) on March 16, 2021