跳到内容

Simple Code Block Highlighter

v1.2.2

zohebtg · 2026年5月21日 上架

Enhances WordPress code blocks with line numbers, copy functionality, automatic syntax highlighting, and light or dark themes.

正在使用
10 以下
评分
暂无
累计下载
454
最近更新
2026年5月21日
需要 WordPress 5.0+已测试到 7.0.9PHP 7.4+

贡献者

截图

Frontend code block with syntax highlighting, line numbers, and copy button.
Frontend code block with syntax highlighting, line numbers, and copy button.
Plugin settings page with display options.
Plugin settings page with display options.

Simple Code Block Highlighter enhances the default WordPress code and preformatted blocks. It can show line numbers, add a copy-to-clipboard button, switch between light and dark display themes, and automatically color code blocks with bundled Highlight.js syntax highlighting.

The plugin uses the WordPress Settings API, validates and sanitizes saved options, escapes admin output, and avoids inline JavaScript-generated HTML for line numbers. Syntax highlighting is served from the plugin files and does not load a third-party CDN on visitor pages.

For setup help, read the Simple Code Block Highlighter guide.

Third-party Libraries

This plugin bundles Highlight.js 11.11.1 for syntax highlighting.

Highlight.js
Source: Highlight.js on GitHub
License: BSD 3-Clause
License file included at: assets/vendor/highlightjs/LICENSE

Plums

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

导航

说明

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

© 2026 Plums