[ESS] Customizing the Syntax Highlighting in R

S. McKay Curtis smcurtis at stat.washington.edu
Sat Nov 21 18:48:30 CET 2009


Hi Paul,

This hack worked for me

http://old.nabble.com/Font-locking-td22839833.html

although I admit it's not very pretty.

McKay

On Fri, Nov 20, 2009 at 7:17 PM, Paul Heinrich Dietrich
<paul.heinrich.dietrich at gmail.com> wrote:
>
> I'm coming over to Emacs after using gvim, in which I built a R syntax
> highlighting file with thousands of keywords, because I routinely use
> numerous R packages.  In the default for Emacs + ESS, I see highlighting for
> only a few things, such as <-, TRUE, if, and for.  For example, I would like
> to add the following R functions as keywords, such as length, round, nrow,
> names, and read.csv in the colour red.  Thank you for any suggestions.
>
>
> Stephen Eglen wrote:
>>
>> I don't think there is an easy way to do this -- there is the variable
>>
>> inferior-ess-R-font-lock-keywords
>>
>> but that is not easy for a beginner to edit.  Could you give an example
>> of what you would like highlighted and in what colour?
>>
>> ______________________________________________
>> ESS-help at stat.math.ethz.ch mailing list
>> https://stat.ethz.ch/mailman/listinfo/ess-help
>>
>>
>
> --
> View this message in context: http://old.nabble.com/Customizing-the-Syntax-Highlighting-in-R-tp26443563p26453433.html
> Sent from the ESS - Help mailing list archive at Nabble.com.
>
> ______________________________________________
> ESS-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
>



More information about the ESS-help mailing list