Syntax highlighting of R code at WordPress.com

May 20, 2011
By

(This article was first published on What You're Doing Is Rather Desperate » R, and kindly contributed to R-bloggers)

If your WordPress blog is hosted at WordPress.com (like this one), you may know that source code in posts is formatted and highlighted using a shortcode, as explained here.

Until recently, R was not on the list of supported languages (neither was Perl), but I noticed today that both of them are now supported. This may have happened months ago and I just wasn’t aware of it. I spent a merry hour or so updating my old posts in the R category, so the code should now feature pretty colours. Let me know if you spot any errors that I may have introduced inadvertently.

I guess this is in some sense recognition that R is now used quite widely and that usage is growing.


Filed under: programming, R, statistics, this blog Tagged: shortcode, syntax highlighting, wordpress

To leave a comment for the author, please follow the link and comment on his blog: What You're Doing Is Rather Desperate » R.

R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...



If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Tags: , , , , , ,

Comments are closed.