First of all, welcome to my blog! I will write posts about trading, quantitative and algorithmic trading, programming and everything else what is on my mind. Feel free to comment and give suggestions how to improve this blog. Thank you!
Well, one of the first issues I was facing was: How to nicely highlight R (and other programming language) source code in my posts. After few minutes of googling I found this blog post. The plugin named WP-CodeBox does the job! It's easy to use and works fine even in WordPress 3.1.
The question mark in upper right corner was linking to irrelevant webpage so I decided to remove it. Open main.php file and comment row number 90:
$output .= "<sup><a href=\"http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples\" target=\"_blank\" title=\"WP-CodeBox HowTo?\"><span style=\"color: #99cc00\">?</span></a></sup>";
This little trick will remove the annoying question mark. OK.. now let's go back to usage of the plugin. All you have to do is to add:
to your post and place your code inside the tags. That's all.. simple, yet powerful.