简体   繁体   中英

Colours of the text in R editor?

In my collegue's version of R the different types of text become different colours when you write in the editor(for example functions are blue while text in quotation marks is green). For me, however, all the text is black which I think makes it harder to get a quick understanding of the code. There is also no automatic line break. Is it because he has the mac version while I have the PC version? Is there som way i can change this?

Thanks in advance!

Edit: changing the settings below will allow you to change the color of, say, R help text or of code but doesn't actually enable syntax highlighting. Per @Roland's comment, your best bet is a different text editor (such as Notepad++,RStudio, or Sublime) or a syntax highlighting package. Apparently the Mac version of the R editor really is just better (per this wiki )

You can change the settings in Edit>RGUI Preferences, under "Console and Pager Colours". RGUI配置编辑器屏幕抓取

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM