Linux 软件免费装
Banner图

Simple Code Block Highlighter

开发者 zohebtg
更新时间 2026年5月21日 19:35
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPLv2 or later
版权网址: 版权信息

标签

code highlighter syntax code block copy button

下载

1.2.1 1.2.2 1.2.0

详情介绍:

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.

安装:

  1. Upload the plugin folder to /wp-content/plugins/simple-code-block-highlighter.
  2. Activate the plugin from the WordPress Plugins screen.
  3. Go to Settings > Simple Code Block Highlighter to choose display options. Color Code Blocks is checked by default.
  4. Add a WordPress Code block, paste any code you like, and the plugin will work out of the box.

屏幕截图:

  • Plugin settings page with display options.

常见问题:

How do I use the plugin?

Add a WordPress Code block (<code>) in the editor, paste any code you like, and publish or preview the post. The plugin automatically detects the language and highlights the block out of the box.

Where can I find setup instructions?

Read the Simple Code Block Highlighter guide for full setup and usage instructions.

Does this plugin store visitor data?

No. The plugin only stores administrator-selected display settings in the WordPress options table.

Does this plugin change the original post content?

No. Code blocks are enhanced in the browser after the page loads. The saved post content is not modified.

Does the plugin detect code automatically?

Yes. The plugin auto-detects the code type every time, so no extra setup is needed.

更新日志:

1.2.2 1.2.1 1.2.0 1.1.0 1.0