'Change setting in Notepad++ to default R language
I have some R code files with extension .R and use Notepad++ as default application to work on them.
However when I double click an .R file to open in Notepad++, it opens as plain text file as symbol highlighting for R is not applied as default. I therefore have to manually chose language as R from the Language tab.
Is there any way to set default behaviour of Notepad++ such that when it opens a .R file, it will directly apply default style for R?
I have gone through various advices e.g. https://superuser.com/questions/58672/how-to-set-the-default-language-in-notepad and tried to follow advices there, but still could not apply default setting of R to .R file directly. My setting configuration looks like below :
It would be really helpful if someone can point to the right approach set default behaviour of Notepad++ so that it will apply settings for R language directly to .R file.
I am using Windows 10 as OS.
Solution 1:[1]
I've gotten this issue.
I resolved it by deleting disabling Rebol language in Notepad++. After I've done that the R language was detected.
It's not the best answer if you use Rebol language but I don't use nor know it.
Settings / Preferences.../ Language / disabled items (or hidden in some translations)
Solution 2:[2]
Screenshot of language selection You should be able to select language from the drop down on the top row. Although I recently made the switch to VSCode - would recommend.
Edit:1 You can use VSCode with extension installed R then you can refer official documentations from extension provider
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | |
| Solution 2 |

