Title: Code Block
Author: Jerome
Published: <strong>2020 年 10 月 16 日</strong>
Last modified: 2020 年 10 月 16 日

---

搜索插件

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

![](https://ps.w.org/code-block/assets/icon.svg?rev=2400671)

# Code Block

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

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

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

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

## 描述

This plugin uses [Prism.js](https://prismjs.com) and a port of the beautiful Atom
One Dark code theme with the Fira Code font.

#### Features

 * Syntax highlighting
 * Tab support
 * Special glyphs for arrow functions, operators, etc
 * Nice interface
 * 17+ languages supported

#### Supported Languages

 * HTML
 * CSS
 * JavaScript
 * Python
 * PHP
 * Ruby
 * SCSS
 * C
 * C++
 * C#
 * Objective-C
 * TypeScript
 * Swift
 * Go
 * JSON
 * SQL
 * Bash

Want to contribute? Check out the [GitHub repository](https://github.com/jxxe/code-block).

## 屏幕截图

 * [[
 * The editor block
 * [[
 * The result

## 区块

该插件提供了 1 个区块.

 *   Code Block

## 常见问题

### What if [insert favorite langauge] isn’t supported?

I’ve tried my best to include the some of the most common programming languages,
but there’s a change that yours isn’t supported! There are two things you could 
try. First, many programming langauge syntaxes are very similar. Play around with
different languages and see if any produce a good enough result. Give a member of
the C family a try. Alternatively, you can fork the repository on GitHub and add
it yourself. As long as there’s enough demand and Prism.js supports it, you should
be good to go!

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

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

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

### 对开发感兴趣吗?

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

## 更新日志

1.0 – Initial Release

## 额外信息

 *  版本 **1.0**
 *  最后更新：**6 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **5.5.18**
 *  语言
 * [English (US)](https://wordpress.org/plugins/code-block/)
 * 标签
 * [code](https://cn.wordpress.org/plugins/tags/code/)[format](https://cn.wordpress.org/plugins/tags/format/)
   [formatter](https://cn.wordpress.org/plugins/tags/formatter/)[Highlight](https://cn.wordpress.org/plugins/tags/highlight/)
   [syntax](https://cn.wordpress.org/plugins/tags/syntax/)
 *  [高级视图](https://cn.wordpress.org/plugins/code-block/advanced/)

## 评级

尚未提交反馈。

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

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

## 贡献者

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

## 支持

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

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