Technology Insights

WordPress Plugin: QuickCode Quick Reference Information

I typically post a lot of code or Linux shell data into WordPress posts using the SyntaxHighlighter plugin however in some scenarios that doesn’t always work the best so I use the QuickCode plugin. Since QuickCode is only rarely used I always forget the possible options that are available so this is a quick reference to those options.

QuickCode: A WordPress plugin formater

Standard QuickCode Post With No Options:
[quickcode]
<?php print “This is sample code line one”; ?>
<?php print “This is sample code line two”; ?>
<?php print “This is sample code line three, Question Defense ROCKS!”; ?>
[/quickcode]

Technology Insights

How To Easily Post Code Snippets In Your WordPress Blog

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