57

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 .

19

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 -->
  • 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 .