Warning: Mini Tags are depreciated in favour of <pre> tags. <pre> tags are backward compatible, html5 valid and usable in the new Tag Editor. If you have old blog posts that use Mini Tags, you can convert them automatically from the settings screen.
Writing $[php theme="twilight"]echo 123;[/php] turns into $[crayon theme="twilight" lang="php"]echo 123;[/crayon]. No more do you need to retype the plugin’s charming name anymore - just the language and the settings you care about. If you want, you can turn this off in Settings (like everything else). Also, you can use <pre lang="php"></pre> if you’d like some backward compatibility with plugins that support this style of shortcode. Here’s an example of using Mini Tags and the output it generated. I’ve also added a new $[plain]...[/plain] tag that allows you to wrap any code in <pre><code> ... </code></pre> syntax for showing any syntax without using Crayon. It will also convert any nasty characters into HTML entities for you, so everything will look exactly as it does in the HTML view of the post editor. The IDs of the languages like “php” and “py” can be found in Settings > Crayon > Languages > Show Languages in WP admin.
$[html theme="twilight"]

Here's some XHTML!

// A sample class class Human { private int age = 0; public void birthday() { age++; print('Happy Birthday!'); } } ?> [/html] $[py] # Merge example def mergeWithoutOverlap(oneDict, otherDict): newDict = oneDict.copy() for key in otherDict.keys(): if key in oneDict.keys(): raise ValueError, "the two dictionaries are sharing keys!" newDict[key] = otherDict[key] return newDict [/py]