Title: bbPress Code Snippets
Author: Jason
Published: <strong>2012 年 10 月 21 日</strong>
Last modified: 2013 年 2 月 18 日

---

搜索插件

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

![](https://s.w.org/plugins/geopattern-icon/bbpress-code-snippets.svg)

# bbPress Code Snippets

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

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

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

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

## 描述

No fancy, complicated syntax highlighting here. The goal of this plugin is to allow
your bbPress users to post code snippets in their forum topics and replies without
having to learn anything new. Basically, any raw HTML/PHP posted within `<pre>` 
or `<code>` tags will automatically be converted and displayed in the forum as you’d
expect it would.

And additionally, anything posted within `<pre>` tags will be automatically escaped
from bbPress applying wpautop. This will allow for your forum users’ code snippets
to keep their whitespace as they intend.

## 安装

 1. Upload `bbpress-code-snippets` folder to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

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

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

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0.3

 * Improved posting code snippets overall for non-admin users.
 * Fixed issues with not accepting many HTML tags in code snippets non-admin users.
 * Fixed issue with `rel="nofollow"` getting added to `<a>` tags in code snippets.
 * Fixed issue with URL’s in code snippets becoming clickable links.

#### 1.0.2

 * Fixed URL’s being transformed into clickable links from happenning within `<pre
   >` tags.

#### 1.0.1

 * Added `<pre>` tag to WordPress’s global $allowedtags so non-admin users can actually
   post with the `<pre>` tag.

#### 1.0.0

 * This is the first release.

## 额外信息

 *  版本 **1.0.3**
 *  最后更新：**13 年前**
 *  活跃安装数量 **10+**
 *  语言
 * [English (US)](https://wordpress.org/plugins/bbpress-code-snippets/)
 * 标签
 * [bbPress](https://cn.wordpress.org/plugins/tags/bbpress/)[code](https://cn.wordpress.org/plugins/tags/code/)
   [pre](https://cn.wordpress.org/plugins/tags/pre/)[topics](https://cn.wordpress.org/plugins/tags/topics/)
 *  [高级视图](https://cn.wordpress.org/plugins/bbpress-code-snippets/advanced/)

## 评级

 5 星（最高 5 星）。

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

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

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

## 贡献者

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

## 支持

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

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