plugin-icon

Highlighting Code Block

제작자: Ryo·
Add code block with syntax highlighting using prism.js. (Available for Gutenberg and Classic Editor)
등급
4.4/5
버전
2.0.1
활성화된 설치 항목
10K
최근 업데이트일
Nov 12, 2023
Highlighting Code Block

“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.

무료Business 요금제에서
설치하면 WordPress.com 서비스 약관서드파티 플러그인 약관에 동의하게 됩니다.
테스트된 버전
WordPress 6.4.7
이 플러그인은 다운로드할 수 있으며 에서 사용할 수 있습니다.