[R] Separate colour for comments in scripts

Duncan Murdoch murdoch at stats.uwo.ca
Mon Sep 24 12:45:20 CEST 2007


Sumit.Gupta at ubs.com wrote:
> Hi,
>
> Is it possible to assign a separate colour for comments written with #,
> eg:-
>
> #this is a comment
>
> . I am looking to colour them differently from the program text in
> R-Editor (not console). Is it possible to do so?
>   

Yes, in the MacOSX gui; no in the Windows gui; yes in many external text 
editors that work with R (e.g. Tinn-R on Windows).

Duncan Murdoch
> Eg. In Visual basic, the colour for remarks gets green automatically
>
> Regards
> Sumit
>
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> 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.
>



More information about the R-help mailing list