dosper7 / google-code-prettify

Automatically exported from code.google.com/p/google-code-prettify
Apache License 2.0
0 stars 0 forks source link

please support R language #149

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
R is a very popular language for statistics (and other work).  Most 
undergraduates learn R nowadays, and it is also growingly popular in the 
research community.

I assume anyone reading this can find R code pretty easily.  From the point of 
view of syntax, the main things are as follows.

1. strings can be enclosed in either double-quote or single quote

2. main keywords: if else for while TRUE FALSE

3. comments start at # and go to the end of a line

4. assignment is done with the two-character sequence   <-    

A few more examples can be seen at 
http://emit.phys.ocean.dal.ca/codex/examples/r/ (which is, in fact, one of the 
sites I'd like to prettify).

THANKS!

PS. I would have sent a patch, but my mind forgot all the svn I knew, when I 
switched to git.

Original issue reported on code.google.com by kelley....@gmail.com on 6 May 2011 at 11:43

GoogleCodeExporter commented 8 years ago
In issue #233 I included a patch (the files can be found at 
https://github.com/jrnold/prettify-lang-r-bugs)

Original comment by jeffrey....@gmail.com on 12 Aug 2012 at 3:40

GoogleCodeExporter commented 8 years ago

Original comment by mikesamuel@gmail.com on 5 Feb 2013 at 12:44