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. Commented Feb 26, 2014 at 8:29
  • 7
    It is, after all, a pirate's favorite programming language. Commented Mar 3, 2014 at 20:12
  • 1
    @Adam obligatory Paul and Storm: youtube.com/watch?v=nqvA5IyfSSQ&feature=kp (edit: slightly NSFW, depending on where you work). Commented Mar 3, 2014 at 20:18
  • 3
    Now applied to stackoverflow, code golf, cross validated, data science, code review and programmers Commented Jun 12, 2014 at 13:38

1 Answer 1

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! Commented Jun 12, 2014 at 10:21

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.