Title: Smart Code Escape
Author: danielpataki
Published: <strong>2014 年 12 月 8 日</strong>
Last modified: 2015 年 4 月 22 日

---

搜尋外掛

![](https://ps.w.org/smart-code-escape/assets/banner-772x250.png?rev=1040661)

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://ps.w.org/smart-code-escape/assets/icon-256x256.png?rev=1040661)

# Smart Code Escape

 由 [danielpataki](https://profiles.wordpress.org/danielpataki/) 開發

[下載](https://downloads.wordpress.org/plugin/smart-code-escape.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/smart-code-escape/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/smart-code-escape/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/smart-code-escape/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/smart-code-escape/#developers)

 [技術支援](https://wordpress.org/support/plugin/smart-code-escape/)

## 外掛說明

A tiny plugin for WordPress which converts greater than signs, smaller than signs
and ampersands to html entities within pre tags. It supports semantic syntax you
would use when using the Prism highlighter for example. If a code tag sits immediately
within a pre tag it will not be escaped.

Code is escaped before it is displayed which gives you easy editing access in the
backend as you will always see the unescaped version.

## 螢幕擷圖

[⌊Some code written in the admin. Notice, no need to encode entities⌉⌊Some code 
written in the admin. Notice, no need to encode entities⌉[

Some code written in the admin. Notice, no need to encode entities

[⌊This is how it is shown on the front-end. The initial code tag is not encoded 
for use in Prism.⌉⌊This is how it is shown on the front-end. The initial code tag
is not encoded for use in Prism.⌉[

This is how it is shown on the front-end. The initial code tag is not encoded for
use in Prism.

## 安裝方式

Since this a WordPress plugin just search for “Smart Code Escape” in the plugins
section in the admin and install it from there. If you would rather install it manually
you can do the following:

 1. Download and extract the plugin
 2. Copy the resulting directory into your WordPress plugins directory
 3. Go to your WordPress admin and activate the plugin.

## 常見問題集

  Where are the settings?

There are no settings at the moment. The plugin will escape your code for you within
pre tags, not setup needed.

  How should I format my code?

The whole reason for the plugin is so you don’t need to add any special formatting.
You can type any characters you like, they will show up as you’d expect in the admin
and will be escaped on the front-end.

  Does the plugin work with syntax highlighters

I have only tested it with Prism but I imagine it should work with a number of others
as well. Prism requires you to create a semantically correct markup. The plugin 
does not escape a code tag if it is directly within a pre tag for this reason.

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈Smart Code Escape〉的開發相關工作。

參與者

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

[將〈Smart Code Escape〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/smart-code-escape)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/smart-code-escape/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/smart-code-escape/)，或透過 
[RSS](https://plugins.trac.wordpress.org/log/smart-code-escape/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/smart-code-escape/)。

## 變更記錄

#### 1.1.0 (2015-04-20)

 * WordPress 4.2 compatibility check

#### 1.0.1

 * Added Smaller Icon

#### 1.0

 * Initial version

## 中繼資料

 *  版本 **1.1**
 *  最後更新 **11 年前**
 *  啟用安裝數 **10+**
 *  WordPress 版本需求 ** 1.2.1 或更新版本 **
 *  已測試相容的 WordPress 版本 **4.2.39**
 *  語言
 * [English (US)](https://wordpress.org/plugins/smart-code-escape/)
 * 標籤:
 * [code](https://tw.wordpress.org/plugins/tags/code/)[content](https://tw.wordpress.org/plugins/tags/content/)
 *  [進階檢視](https://tw.wordpress.org/plugins/smart-code-escape/advanced/)

## 評分

 5 星，滿分為 5 星

 *  [  1 個 5 星使用者評論     ](https://wordpress.org/support/plugin/smart-code-escape/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/smart-code-escape/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/smart-code-escape/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/smart-code-escape/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/smart-code-escape/reviews/?filter=1)

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

[查看全部使用者評論](https://wordpress.org/support/plugin/smart-code-escape/reviews/)

## 參與者

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

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

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

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](https://gratipay.com/danielpataki/)