Hi Sigbert,

Sigbert Klinke <sigb...@wiwi.hu-berlin.de> writes:

> Hi,
>
> I would like know if there are any plans for some "standardized"
> syntax highlighting of R code?
>
> * Currently I'm using minted for my LaTeX slides with pygmentize and I
> do not know what scheme is used for highlighting the R code.
> * RStudio uses (as default) TextMate (Text editor for MacOS)
> highlighting for R code.
> * The R package "highr" just defines CSS classes and does not provide
> any default CSS file, but embeds andre simons Highlight 3.42 Software
>
> Of course, for my students I would like to have approximately the same
> highlighting in the slides, in RStudio and in shiny.

I'm not in a position to know whether anyone has such plans, but I
assume that trying to standardise syntax highlighting is probably a can
of worms that no-one would want to open, as it is just too subjective an
issue.  However, I seem to remember that you can use /setminted to set
the style and

  pygmentize -L styles

will give you a list of predefined styles.  Maybe one of them is suitable.

Cheers,

Loris

-- 
Dr. Loris Bennett (Mr.)
ZEDAT, Freie Universit├Ąt Berlin         Email loris.benn...@fu-berlin.de

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to