This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Source Codes in Comments

Description

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

Features

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

Plugin Info Page | Plugin Author

Screenshots

  • Plugin Option Page
  • Comment form

FAQ

What is the output? Show me an example.

If you use [code]This is a <b>bold text</b>.[/code], 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.

Changelog

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

Contributors & Developers

Source Codes in Comments is open source software. The following people have contributed to this plugin.

Contributors

Translate Source Codes in Comments into your language.

Interested in development?

Browse the code or subscribe to the development log by RSS.