Title: Code Block Syntax Highlighter for Elementor
Author: netninja2202
Published: <strong>2021 年 2 月 6 日</strong>
Last modified: 2023 年 9 月 14 日

---

搜索插件

![](https://ps.w.org/code-block-for-elementor/assets/banner-772x250.png?rev=2473918)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/code-block-for-elementor/assets/icon-128×128.jpg?rev=2473918)

# Code Block Syntax Highlighter for Elementor

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

[下载](https://downloads.wordpress.org/plugin/code-block-for-elementor.1.0.3.zip)

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

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

## 描述

Code Block Syntax Highlighter for Elementor is an Elementor widget which adds code
blocks with prism.js syntax highlighting to your website.
 All languages and themes
of Prism.js 1.22.0 are supported.

 * Elementor widget to highlight code snippets
 * All prism.js languages are supported
 * Use different Prism.js themes
 * Show or hide line numberscopy to clipboardline numbers

## 屏幕截图

[⌊Elementor code block settings.⌉⌊Elementor code block settings.⌉[

Elementor code block settings.

[⌊Rendered code block.⌉⌊Rendered code block.⌉[

Rendered code block.

[[

[[

[[

## 安装

 1. Upload the plugin to your blog and activate

## 常见问题

### I want an additional feature which is not included?

Create a feature request on GitHub: https://github.com/thorstenalpers/wp-plugin-
code-block-for-elementor/issues

### I would like to be able to select only a few languages in the list?

Currently there is no admin UI, but you could modify the code-block.php file from
line 101 to 406 of this plugin, so that you see only a few languages.

## 评价

![](https://secure.gravatar.com/avatar/d44f5a1708b8997d5611545aee5a25c5f8f99a243403d17654cbe932a92113b3?
s=60&d=retro&r=g)

### 󠀁[Great!](https://wordpress.org/support/topic/great-16661/)󠁿

 [cristianzerbinati](https://profiles.wordpress.org/cristianzerbinati/) 2025 年 
2 月 3 日

At now with WordPress 6.7.1 and Elementor, work perfect! Great job

![](https://secure.gravatar.com/avatar/ea106a3a15fa2841faa8ebc18631410ae6b5afc3bbb0aa7acc2b6940dcb22762?
s=60&d=retro&r=g)

### 󠀁[Efficient and complete](https://wordpress.org/support/topic/efficient-and-complete-2/)󠁿

 [titanesk](https://profiles.wordpress.org/titanesk/) 2023 年 1 月 11 日

Congratulations for this plugin. It is really complete because it takes into account
syntax highlighting with many programming languages and allows you to change the
design easily.It works very well with WordPress 6.1.1

![](https://secure.gravatar.com/avatar/a30cfcf5c0d3b69627ce8a0baf40c9b74ce35f45bcb434cc7a76c3a8e9fa7bfc?
s=60&d=retro&r=g)

### 󠀁[Finally a pluging for code hightlight on elementor](https://wordpress.org/support/topic/finally-a-pluging-for-code-hightlight-on-elementor/)󠁿

 [fantominus1](https://profiles.wordpress.org/fantominus1/) 2022 年 8 月 27 日

Been searching for a code hightlight plugin to make a simple portfolio with Elementor
without needing to get the pro version and this one seems to work perfectly.

![](https://secure.gravatar.com/avatar/b6d8792b31e42d6ce9be2531cad17f0535a3f635e8b1617626b19418e0a8acfe?
s=60&d=retro&r=g)

### 󠀁[Great job](https://wordpress.org/support/topic/good-work-746/)󠁿

 [sherif magdy](https://profiles.wordpress.org/sherifmagdy/) 2022 年 6 月 5 日

thanks for providing it for free.

![](https://secure.gravatar.com/avatar/c300ddce8c328813414c8ba84d4e31709b697f512501a9f2763e66a1698159a1?
s=60&d=retro&r=g)

### 󠀁[Perect and simple!](https://wordpress.org/support/topic/perect-and-simple/)󠁿

 [purplelawnchairs](https://profiles.wordpress.org/purplelawnchairs/) 2021 年 12
月 2 日

This is exactly what I was looking for and works seamlessly with Elementor Thanks
you very much, this was hard to find but i’m glad I did. Hope it gains traction

![](https://secure.gravatar.com/avatar/cfd27e3a31bae184cd1bfdc76df1e94b2dc937cb111ae0a3f1ac26709c01cce3?
s=60&d=retro&r=g)

### 󠀁[Great work!](https://wordpress.org/support/topic/great-work-953/)󠁿

 [fwkart](https://profiles.wordpress.org/fwkart/) 2021 年 5 月 6 日

Thanks 🙂

 [ 阅读所有8条评价 ](https://wordpress.org/support/plugin/code-block-for-elementor/reviews/)

## 贡献者及开发者

「Code Block Syntax Highlighter for Elementor」是开源软件。 以下人员对此插件做出
了贡献。

贡献者

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

[帮助将「Code Block Syntax Highlighter for Elementor」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/code-block-for-elementor)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0.1 – 12-02-2020

Improved description

#### 1.0.0 – 16-12-2020

Added: Initial release

## 额外信息

 *  版本 **1.0.3**
 *  最后更新：**3 年前**
 *  活跃安装数量 **600+**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **6.3.8**
 *  PHP 版本 ** 5.6 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/code-block-for-elementor/)
 * 标签
 * [code](https://cn.wordpress.org/plugins/tags/code/)[code highlighting](https://cn.wordpress.org/plugins/tags/code-highlighting/)
   [elementor](https://cn.wordpress.org/plugins/tags/elementor/)[syntax highlight](https://cn.wordpress.org/plugins/tags/syntax-highlight/)
 *  [高级视图](https://cn.wordpress.org/plugins/code-block-for-elementor/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  8 条 5 星评价     ](https://wordpress.org/support/plugin/code-block-for-elementor/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/code-block-for-elementor/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/code-block-for-elementor/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/code-block-for-elementor/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/code-block-for-elementor/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/code-block-for-elementor/reviews/#new-post)

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

## 贡献者

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

## 支持

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

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