Plugin categories

Create a Website with AI
Code Syntax Block

Code Syntax Block

Code Syntax Block plugin extends the block editor by adding syntax highlighting to the core code block.

4.9

Rating summary

47

Reviews

8K

Active installations

Code Syntax Block
Code Syntax Block
Code Syntax Block
Code Syntax Block

Overview

Compatibility

Installation instructions

Customer support & learning resources

Changelog

Main benefits

Syntax highlighting support

Uses Prism highlighter

JavaScript parsing of code

Customizable CSS styling

Github issue tracking

About this plugin

Author: Weston Ruter
Version: 3.2.1
Last updated: 08-05-2024
WordPress version: 5.6
Tested up to: 6.5.5
PHP version required: 5.6
Languages: Deutsch (Sie), Deutsch [+6]
Learning resources: View resources

Overview

The Code Syntax Block plugin enhances the WordPress block editor by integrating syntax highlighting capabilities within the core code block, utilizing the Prism syntax highlighter. This plugin leverages JavaScript to parse code blocks on the front-end, applying detailed syntax markup, while a corresponding CSS file dictates the color and style of the highlighting. This enriches code presentation, making it more readable and visually appealing for site visitors. For more information on development and to report issues, users can visit its GitHub repository at https://github.com/mkaz/code-syntax-block.

Syntax Highlighting Support

  • Extends the WordPress block editor by adding syntax highlighting.
  • Uses Prism syntax highlighter for parsing and applying syntax markup.

Front-End JavaScript Parsing

  • Prism syntax highlighter runs JavaScript on the front-end.
  • Ensures code blocks are parsed and highlighted dynamically.

Customizable Styling

  • A CSS file specifies the color and style for the syntax markup.
  • Allows for customization of the appearance of code blocks.

Open Source Development

  • Primary development and issue tracking on GitHub.
  • Community contributions and transparency in development.

Rating and reviews

4.9

Rating summary

47

Reviews

8K

Active installations

5
4
3
2
1

User sentiment analysis

Users appreciate that this WordPress plugin extends the standard Gutenberg block with additional themes and is easy to use. It allows for syntax highlighting across multiple languages and provides a sleek, customizable, and lightweight solution compared to other bulky alternatives. The plugin’s ability to set default themes and code types is particularly liked. It integrates well with the native Gutenberg block and requires minimal setup. However, some users noted it lacks support for the Classic editor and certain features like a "copy to clipboard" button. Additionally, it introduces an invalid "lang" attribute, which can disrupt HTML validation and accessibility standards. Despite these issues, it’s generally seen as efficient and effective.
Avirtum

Avirtum

18 Jun, 2024

The main thing is that it extends the standard gutenberg block by adding themes. It might be worth adding a button to copy content to clipboard. Good work!
audioscavenger

audioscavenger

11 Apr, 2024

Why nothing for the Classic editor? How about half of WordPress user base?
Duncan

Duncan

19 Sep, 2023

Colourise syntax of existing code blocks – great! Wonderful simple options of setting a default theme (e.g. dark/light) and a default code type (e.g. PHP). Just what I was looking for, thanks! Happily working on WordPress 6.3.1 Sept 2023. This topic was modified 10 months ago by Duncan. Reason: Typo
superlama

superlama

28 Jun, 2023

It does the job!
Fellipe Sanches

Fellipe Sanches

10 Jun, 2023

Work for all program languages. Great.

FAQ

What languages are supported?

How to customize the color scheme?

How to customize the language list?

Can I set a default language so I don’t have to select each time?

Can I override the conditional loading, so assets always load?

How do I report issues or contribute to development?

Does the plugin support custom themes?

Is the plugin optimized for accessibility?