Source Codes in Comments Plugin allow users to post source codes in comments using [code][/code] tag. No syntax highlight at the moment, it just replaces the special characters.
If you use [code]text[/code], the output will be
<div class=”cic_codes_div”><code>text</code></div>
You can style the div using CSS. For example :
.cic_codes_div {
border:1px solid #dddddd;
background:#ffffff;
color:#444444;
padding:8px;
}
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 <b>bold text</b></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 - 1,699 downloads
Version 1.0
- First version of Source Codes in Comments
I spent a lot of time making themes and plugins. If you like this plugin and would like to support my works, you can donate via PayPal using the button below.
If you have any problem with the plugin, please reply here.
Thank you.
I’ ve been looking so long at similar plugin. Thank you very much. I’ ll try it.
Thank you for the plugin
it’s not working in wp 3.0… ???
whether to download the plugin
Thnx very much it worked !