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:
1 | $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:
<pre lang="RSPLUS"></pre>
to your post and place your code inside the tags. That's all.. simple, yet powerful.
Tags: code highlighter, R, wordpress
-
Congrats on the new blog.
1) Consider removing the auto comment.
2) Consider adding the subscribe to comments plugin
3) once you have several more R posts, consider adding your blog to http://www.r-bloggers.com/add-your-blog/ to gain more readers (but I strongly encourage you to do so only after you've got more R content...)Good luck

Tal



4 comments
Comments feed for this article
Trackback link: http://blog.quanttrader.org/2011/03/hello-world/trackback/