rubychan / coderay

Fast and easy syntax highlighting for selected languages, written in Ruby.
http://coderay.rubychan.de/
Other
847 stars 115 forks source link

R #160

Open funal125 opened 10 years ago

funal125 commented 10 years ago

Will you support R in the future?

korny commented 10 years ago

It's not planned, but you can add your own language if you know a little about regular expressions :)

ghost commented 10 years ago

Let's try to use this as a thinking area - I hope korny does not mind.

Syntax that would have to be supported:

Plot: (<- is used as assignment in R for arrays, strangely enough)

y <- x + rnorm(N) plot(y ~ x)

Range: count from 1 up to 20

x <- 1:20

Squareroot

a = 3; b = sqrt(a * a+3)

Function calls in general (mean() is an inbuilt function):

mean(1:10)

PS: It may be easier to add partial support for R and slowly extend it, if korny does not mind partial support (not sure whether he does, the wiki link above states that only full support is acceptable :) )

korny commented 10 years ago

Let's try to use this as a thinking area - I hope korny does not mind.

Absolutely not, great idea.

You can use the ``` code blocks to make the examples a bit more readable.

KobaKhit commented 9 years ago

+1. Want that too.

blayz3r commented 6 years ago

+1