# Syntax highlighting of R code at WordPress.com

[This article was first published on

Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

**What You're Doing Is Rather Desperate » R**, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

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 their blog:**What You're Doing Is Rather Desperate » R**.R-bloggers.com offers

**daily e-mail updates**about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.

Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.