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

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 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://zh-hk.wordpress.org/plugins/code-block/#description)
 * [評價](https://zh-hk.wordpress.org/plugins/code-block/#reviews)
 * [開發](https://zh-hk.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 editor block⌉[

The editor block

[⌊The result⌉⌊The result⌉[

The result

## Blocks

This plugin provides 1 block.

 *   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!

## 評價

There are no reviews for this plugin.

## 貢獻者及開發者

“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

## 其它

 *  Version **1.0**
 *  Last updated **6 年之前**
 *  Active installations **10+**
 *  WordPress version ** 5.0 or higher **
 *  Tested up to **5.5.20**
 *  Language
 * [English (US)](https://wordpress.org/plugins/code-block/)
 * Tags
 * [code](https://zh-hk.wordpress.org/plugins/tags/code/)[format](https://zh-hk.wordpress.org/plugins/tags/format/)
   [formatter](https://zh-hk.wordpress.org/plugins/tags/formatter/)[Highlight](https://zh-hk.wordpress.org/plugins/tags/highlight/)
   [syntax](https://zh-hk.wordpress.org/plugins/tags/syntax/)
 *  [進階顯示](https://zh-hk.wordpress.org/plugins/code-block/advanced/)

## 評分

No reviews have been submitted yet.

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

[See all reviews](https://wordpress.org/support/plugin/code-block/reviews/)

## 貢獻者

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

## 支援

有話想說？需要協助？

 [檢視支援論壇](https://wordpress.org/support/plugin/code-block/)