61

Syntax highlighting for R is not currently supported on Stack Exchange (see here). Currently, questions tagged are using the "default" syntax highlighting (see in the code source of any page tagged with the snippet <div style="display:none" id="prettify-lang">default</div>).

However R is supported by Google-code-prettify as an extension. As the tag just passed the 50,000-questions milestone on Stack Overflow (with an additional 5,000 on Cross Validated), would it be possible to have our syntax highlighting implemented and linked to the tag?

Edit: four months later
The tag on Stack Overflow is now close to 60,000 questions, on Cross Validated more than 6,000 questions, a couple hundreds answers on Code Golf, 40 questions on Code Review and 9 out of the 84 questions present on the brand new Data Science beta are tagged with .

4
  • 3
    @Roland yes and for Code Golf and Code Review you're right, I'll change SO to SE. – plannapus Feb 26 '14 at 8:29
  • 7
    It is, after all, a pirate's favorite programming language. – Pollyanna Mar 3 '14 at 20:12
  • 1
    @Adam obligatory Paul and Storm: youtube.com/watch?v=nqvA5IyfSSQ&feature=kp (edit: slightly NSFW, depending on where you work). – Mike G Mar 3 '14 at 20:18
  • 3
    Now applied to stackoverflow, code golf, cross validated, data science, code review and programmers – Marc Gravell Jun 12 '14 at 13:38
22

I have now dragged in the lang-r stuff and set it against the tag; there may be some small delay while the cache expires etc, but you should be able to explicitly specify it via:

<!-- language: lang-r -->

Once the cache has cleared (i.e. when it picks it up implicitly from ) you should also be able to specify it (when there is ambiguity) via:

<!-- language: r -->
1
  • 2
    Brilliant news! Thanks! – plannapus Jun 12 '14 at 10:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .