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

Source Codes in Comments

描述

Allow users to post source codes in comments using tag. No syntax highlight at the moment, it just replaces the special characters.

Features

  • Replaces the special characters for the comment texts wrapped in tags
  • You can show a message after comment form to tell your visitor know they can post codes using tags

Plugin Info Page | Plugin Author

屏幕截图

  • Plugin Option Page
  • Comment form

安装

  1. Download the plugin package
  2. Extract and upload the “source-codes-in-comments” folder to your-wordpress-directory/wp-content/plugins/
  3. Activate the plugin and its ready
  4. Go to Admin Panel > Settings > Codes in Comments and customise it to suit your needs.

常见问题

What is the output? Show me an example.

If you use

This is a <b>bold text</b>.

, the output will be <div class="cic_codes_div"><code >This is a &lt;b&gt;bold text&lt;/b&gt;</code></div>.

How do I style the source code DIV?

The DIV that contains the codes has CSS class "cic_codes_div". Style it in CSS.

评价

此插件暂无评价。

贡献者及开发者

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

贡献者

更新日志

1.0.2

  • Added str_replace to the stripslashes so that “plugin message” field works with double quotes

1.0.1

  • Added stripslashes to input area
  • Updated the link to plugin support

1.0

  • First version of Source Codes in Comments