Title: Zeddotes Enhanced Code Block
Author: zeddotes
Published: <strong>2026 年 8 月 11 日</strong>
Last modified: 2026 年 8 月 11 日

---

搜索插件

![](https://s.w.org/plugins/geopattern-icon/zeddotes-enhanced-code-block.svg)

# Zeddotes Enhanced Code Block

 作者：[zeddotes](https://profiles.wordpress.org/zeddotes/)

[下载](https://downloads.wordpress.org/plugin/zeddotes-enhanced-code-block.1.0.0.zip)

 * [详情](https://cn.wordpress.org/plugins/zeddotes-enhanced-code-block/#description)
 * [评价](https://cn.wordpress.org/plugins/zeddotes-enhanced-code-block/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/zeddotes-enhanced-code-block/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/zeddotes-enhanced-code-block/#developers)

 [支持](https://wordpress.org/support/plugin/zeddotes-enhanced-code-block/)

## 描述

Zeddotes Enhanced Code Block adds inspector controls to the WordPress core Code 
block:

 * Language select with Prism.js highlighting in the editor and on the frontend
 * Optional line numbers
 * Tab key indents inside the block (Shift+Tab outdents); optional spaces instead
   of tabs
 * Configurable tab size (2 / 4 / 8)
 * Optional copy button before or after the code block, aligned left / center / 
   right (or hidden)

No separate block type — authors keep using the standard Code block.

## 安装

 1. Upload the plugin folder to `/wp-content/plugins/zeddotes-enhanced-code-block` (
    or this directory name).
 2. Run `npm install` and `npm run build` if `build/` is not present.
 3. Activate the plugin through the Plugins screen.
 4. Insert a Code block and open the **Zeddotes Enhanced Code Block** panel in the 
    sidebar.

## 常见问题

### Does this replace the core Code block?

No. It extends `core/code` via block filters.

### Where does highlighting run?

In the block editor and on the frontend, via a bundled Prism.js build.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Zeddotes Enhanced Code Block」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ zeddotes ](https://profiles.wordpress.org/zeddotes/)

[帮助将「Zeddotes Enhanced Code Block」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/zeddotes-enhanced-code-block)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/zeddotes-enhanced-code-block/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/zeddotes-enhanced-code-block/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/zeddotes-enhanced-code-block/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/zeddotes-enhanced-code-block/)。

## 更新日志

#### 1.0.0

 * Initial release: language select, Prism highlighting, configurable copy button.

## 额外信息

 *  版本 **1.0.0**
 *  最后更新：**3 周前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 6.0 或更高版本 **
 *  已测试的最高版本为 **7.0.4**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/zeddotes-enhanced-code-block/)
 * 标签
 * [code](https://cn.wordpress.org/plugins/tags/code/)[copy](https://cn.wordpress.org/plugins/tags/copy/)
   [gutenberg](https://cn.wordpress.org/plugins/tags/gutenberg/)[prism](https://cn.wordpress.org/plugins/tags/prism/)
   [syntax highlighting](https://cn.wordpress.org/plugins/tags/syntax-highlighting/)
 *  [高级视图](https://cn.wordpress.org/plugins/zeddotes-enhanced-code-block/advanced/)

## 评级

尚未提交反馈。

[您的评价](https://wordpress.org/support/plugin/zeddotes-enhanced-code-block/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/zeddotes-enhanced-code-block/reviews/)

## 贡献者

 *   [ zeddotes ](https://profiles.wordpress.org/zeddotes/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/zeddotes-enhanced-code-block/)