Title: Code Snippets in Comments
Author: yannyann
Published: <strong>2020 年 5 月 22 日</strong>
Last modified: 2020 年 5 月 22 日

---

搜索插件

![](https://ps.w.org/code-snippets-in-comments/assets/banner-772x250.jpg?rev=2310248)

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

![](https://ps.w.org/code-snippets-in-comments/assets/icon-256x256.jpg?rev=2310242)

# Code Snippets in Comments

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

[下载](https://downloads.wordpress.org/plugin/code-snippets-in-comments.0.9.zip)

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

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

## 描述

Code Snippets in Comments plugin extends the Comments function by show code in highlighting
without modifying the saving of comments in database.

By default Code Snippets in Comments plugin using Prism JavaScript Library as the
code highlighter for its fast and light property.

Code Snippets in Comments plugin also support with two famous plugins, Prismatic
and Code Syntax Block, automatically set the code highlighter with these two plugin
setting.

And I suggest just using one of these code highlighter plugin.

One more function is that Code Snippets in Comments plugin add a new code input 
bar below comment textarea box, let visitor type their code with problem more easier.

Primary development and issues tracked on Github at: [https://github.com/a2d8a4v/Code-Snippets-in-Comments](https://github.com/a2d8a4v/Code-Snippets-in-Comments)

## 屏幕截图

 * [[
 * Example Syntax Highlighting in Comments
 * [[
 * Code Input Button Bar

## 安装

After activating the plugin, you will see the comments aread with new-added code
input button bar let visitor more easier type thier problem with code.

After publishing these comments, you can see the code with highlighting at front-
end.

## 常见问题

None

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

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

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

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0

Initial WordPress Plugin Repository releases, include upgrade Prism to 1.16.0 and
new default One Dark theme.

## 额外信息

 *  版本 **0.9**
 *  最后更新：**6 年前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **5.4.19**
 *  PHP 版本 ** 5.6.20 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/code-snippets-in-comments/)
 * 标签
 * [code](https://cn.wordpress.org/plugins/tags/code/)[code highlighting](https://cn.wordpress.org/plugins/tags/code-highlighting/)
   [code syntax](https://cn.wordpress.org/plugins/tags/code-syntax/)[comments](https://cn.wordpress.org/plugins/tags/comments/)
   [syntax highlight](https://cn.wordpress.org/plugins/tags/syntax-highlight/)
 *  [高级视图](https://cn.wordpress.org/plugins/code-snippets-in-comments/advanced/)

## 评级

尚未提交反馈。

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

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

## 贡献者

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

## 支持

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

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

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://www.yannyann.com/donate)