I was reviewing a .rmd file of a colleague for an R script today and realized the style functionality was not working. I am new to this way of R coding and so wanted it in what I am used to reading and so renamed the script a .r so that the style functionality would be enabled.
The style format appeared but then I realized at some point it was no longer working again. Now I can't get Notepad++ to recognize my R scripts (those with a .r in the file naming convention) and can't figure out why.
Should R be a choice in the language selection drop down menu?
When I go to -> Settings -> Style Configurator the recent Style is selected but the colors for the comments (for instance) don't match. They should be green and they are not. I am using Notepadd++ 6.5.5. I would update but our IT department makes it very difficult to do this.
答案 0 :(得分:28)
从'langs.xml'文件中的REBOL部分删除R键(路径:user \ AppData \ Roaming \ Notepad ++ \ langs.xml)
301行默认为:
<Language name=“rebol” ext=" r reb" commentLine=";" commentStart="" commentEnd="">
混乱的部分是ext =“r reb”。应该说ext =“reb” 改变这一点,保存文件,你就完全了。
请参阅:
答案 1 :(得分:4)
1.Check if checkbox Enable Global foreground colour is off in settings -> -> Style Configurator -> global stylers -> global override .
2.Try changing color theme.
3.Check R's lang syntax colors in Style Configurator.