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)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的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://cn.wordpress.org/plugins/smart-code-escape/#description)
 * [评价](https://cn.wordpress.org/plugins/smart-code-escape/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/smart-code-escape/#installation)
 * [开发进展](https://cn.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 或更高版本 **
 *  已测试的最高版本为 **4.2.39**
 *  语言
 * [English (US)](https://wordpress.org/plugins/smart-code-escape/)
 * 标签
 * [code](https://cn.wordpress.org/plugins/tags/code/)[content](https://cn.wordpress.org/plugins/tags/content/)
 *  [高级视图](https://cn.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/)