Ever since we started this site I have been struggling with posting code snippets into WordPress blog posts. First I was attempting to use the <pre> and <code> tags but they would blow out the side of my Mandingo theme with two columns. I would then try to go through the code and break the lines at the right places trying to do the formatting myself… no a brilliant idea. Justin whom also posts on this site suggested Markdown which works great. I even put some effort into learning it and don’t mind using it at all. I installed the Text Control plugin and replaced its markdown.php with Markdown Extras markdown.php file which worked like a charm. My problem was that I was still blowing out the side of my theme. After a fairly long search I found a plugin that I did not find on WordPress.org but directly on the developers site called QuickCode which you can locate here.border, code, mandingo, Markdown, Markdown Extra, overflow, pre, QuickCode, text-control, WordPress
Posts Tagged “text-control”
Sep 10 2008
The entire error I recieved was: Fatal error: Cannot redeclare tc_post() (previously declared in www/wp-content/plugins/text-control.php:20) in www/wp-content/plugins/text-control/text-control.php on line 33
When upgrading the WordPress plugin text-control I was getting this error when trying to activate text-control. I ended up remembering that the markdown.php had not worked on initial installation so I replaced it with the markdown.php from the WordPress plugin PHP Markdown Extra which resolved my initial issue.