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]
Notice in the above example that the title of the expandable file is QuickCode. There are really only two variables that can be used to modify the display of your code. The first is being able to add a title and the second is displaying the code already expanded.
Adding A Title To Your QuickCode:
[quickcode:Example Code]
<?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]
In the above example “:Example Code” was added after quickcode to display a title for the posted code.
Displaying QuickCode Expanded:
[quickcode:noclick]
<?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]
In the above example “:noclick” was added to display the code already expanded in your WordPress blog post.
More information about QuickCode is located here. The QuickCode application has not been updated since 12-13-2006 however it still works as expected without any known issues.