syntax Highlighting on wordpress.com blog

you can use the [sourcecode] shortcode on WordPress.com which is built in for you, no need to install or configure anything. For example to get this results : just wrap your code in these tags: [sourcecode language=”css”] your code here [/sourcecode] you can see a list of supported languages and a few other parameters you … Read more

Convert [xcode]foo[/xcode] to foo

What you need is Shortcode API. Just add your own shortcode (put this into your themes functions.php or as a plugin): function my_shortcode_xcode_handler( $atts, $content = null ) { return ‘<pre class=”lang:default decode:true “>’. do_shortcode($content) .'</pre>’; } add_shortcode( ‘xcode’, ‘my_shortcode_xcode_handler’ );