跳到内容

Highlighting Code Block

v2.2.1

LOOS · 2018年12月12日 上架

Add code block with syntax highlighting using prism.js. (Available for Gutenberg and Classic Editor)

正在使用
1 万+
评分
4.5 / 5
累计下载
20 万
最近更新
2026年7月1日
20 条评价需要 WordPress 5.6+已测试到 7.0.9PHP 5.6+

贡献者

截图

Code Coloring
Code Coloring
Select 「Highlighing Code Block
Select 「Highlighing Code Block
Select lang (Guternberg)
Select lang (Guternberg)
Writing your code (Guternberg)
Writing your code (Guternberg)
Added select box (Tinymce)
Added select box (Tinymce)
Select lang (Tinymce)
Select lang (Tinymce)
Writing your code (Tinymce)
Writing your code (Tinymce)
ex) Light color
ex) Light color

“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 the following page for a detailed explanation of this plugin.

URL: https://loos.co.jp/en/documents/highlighting-code-block/

Source code

The source code of this plugin is available on Github.

URL: https://github.com/ddryo/Highlighting-Code-Block

How to use

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.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums