Plugin categories

Create a Website with AI
Highlighting Code Block

Highlighting Code Block

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

4.4

Rating summary

21

Reviews

10K

Active installations

Highlighting Code Block
Highlighting Code Block
Highlighting Code Block
Highlighting Code Block
Highlighting Code Block
+7

Overview

Compatibility

Installation instructions

Customer support & learning resources

Changelog

Main benefits

Syntax-highlighted code block

Supports Block and Classic Editor

Easy language selection

Simple insertion process

Customizable settings

About this plugin

Author: Ryo
Categories: Utilities
Version: 2.0.1
Last updated: 12-11-2023
WordPress version: 5.6
Tested up to: 6.4.5
PHP version required: 5.6
Languages: Ελληνικά, Français [+1]
Learning resources: View resources

Overview

The "Highlighting Code Block" plugin for WordPress enables users to easily add syntax-highlighted code blocks to their posts with just a click. It is compatible with both the Block Editor and Classic Editor, though it is recommended for use in the Block Editor. Users can effortlessly select their code language and insert code blocks, enhancing readability and engagement. The plugin requires PHP 5.6 or later and WordPress 5.6 or later. Settings for the plugin can be accessed via the "[HCB] Settings" in the WordPress admin panel. The source code is available on GitHub, providing transparency and enabling community contributions. Detailed usage instructions and more information are available on the plugin's documentation page.

Easy Syntax Highlighting

  • Allows you to add a syntax-highlighted code block with just a click.
  • Supports a variety of programming languages for highlighting.

Compatibility with Editors

  • Supports both Block Editor and Classic Editor.
  • Recommended for use in the Block Editor for optimal performance.

User-Friendly Interface

  • In Block Editor, simply open the 'Formatting' category and select 'Highlighting Code Block'.
  • In Classic Editor, use the 'Code Block' select box on the toolbar to insert a code block.

Customizable Settings

  • Settings can be accessed via the '[HCB] Settings' menu in the WordPress admin panel.
  • Allows for customization of plugin behavior and appearance.

Rating and reviews

4.4

Rating summary

21

Reviews

10K

Active installations

5
4
3
2
1

User sentiment analysis

Users appreciate the WordPress plugin for its ease of use and the ability to highlight code beautifully, especially with custom and Prism.js file upload options. It supports multiple languages, although some critical ones like Java, Kotlin, and XML are missing, limiting its usefulness for Android developers. Some users reported issues with configuration, lack of support, and occasional errors, notably syntax errors in certain PHP and HTML code combinations. Additionally, while it works well on the frontend, it doesn't function properly on the backend without script duplication. Performance improvements are desired, notably asset merging to enhance efficiency. Overall, it's valued for its simplicity and functionality.
DevAny

DevAny

14 Jul, 2024

편집기와 미리보기 결과가 불일치 편집기에서 줄번호 비정상 표시 줄번호와 코드 영역 겹침
liuliu66

liuliu66

14 Apr, 2024

在寻求关于此问题的帮助时,您可能需要提供以下信息:WordPress 版本 6.5.2目前启用的主题:Vikinger – BuddyPress Social Community(1.9.9.4.2 版本)当前插件:Highlighting Code Block(版本 2.0.1)PHP 版本 8.1.27 错误详情============错误类型 E_ERROR 发生在文件 /www/wwwroot/1.14.58.204/wp-content/plugins/highlighting-code-block/class/loos_hcb_menu.php 的 140 行。错误信息:Uncaught ValueError: Unknown format specifier “�” in /www/wwwroot/1.14.58.204/wp-content/plugins/highlighting-code-block/class/loos_hcb_menu.php:140Stack trace:#0 /www/wwwroot/1.14.58.204/wp-content/plugins/highlighting-code-block/class/loos_hcb_menu.php(140): sprintf()#1 /www/wwwroot/1.14.58.204/wp-includes/class-wp-hook.php(324): {closure}()#2 /www/wwwroot/1.14.58.204/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()#3 /www/wwwroot/1.14.58.204/wp-includes/plugin.php(517): WP_Hook->do_action()#4 /www/wwwroot/1.14.58.204/wp-admin/admin.php(175): do_action()#5 /www/wwwroot/1.14.58.204/wp-admin/plugins.php(10): require_once(‘…’)#6 {main}thrown
sazone

sazone

19 Mar, 2024

read code easily
ishere

ishere

16 Dec, 2023

Very thanks!
Rouzbeh Zarei

Rouzbeh Zarei

12 Nov, 2023

Unfortunately, the plugin doesn’t support Java, Kotlin, Flutter nor XML syntax, making it completely useless for anyone in the Android development field.

FAQ

Available languages

How to use (For Block Editor)

How to use (For Classic Editor)

If it doesn’t work

About settings

Source code

What is 'Highlighting Code Block'?

Where can I find detailed documentation?