有人知道如何将Notepad++设置为SAS、Stata和R的默认文本编辑器吗?

时间:2021-06-07 00:18:11

Anyone know how to set Notepad++ as default text editor for SAS, Stata and R?

有人知道如何将Notepad++设置为SAS、Stata和R的默认文本编辑器吗?

I'm having the hardest time finding anything online (particularly for SAS). Looking for ability to run code from Notepad++ as well as setup color coding.

我很难在网上找到任何东西(尤其是SAS)。寻找运行Notepad++ +代码的能力,以及设置颜色代码。

Thanks.

谢谢。

3 个解决方案

#1


0  

Notepad++ is my favorite editor and I was in the same shoes as you are now.

记事本++ +是我最喜欢的编辑器,我和你现在的处境一样。

I am assuming that you are in Windows (Notepad ++ doesn't exist in Mac, saddest thing for me)

我假设你是在Windows操作系统(记事本++ +在Mac系统中不存在,这是我最难过的事情)

Please follow the steps mentioned in the below webpage and do as the author says.

请按照以下网页中提到的步骤,按照作者所说的去做。

http://hafniumcity.com/notepad_color.php

http://hafniumcity.com/notepad_color.php

Now for in-line editing , it may be not be the best choice for SAS. Although I haven't tried it much so not a good person to comment on it.

现在对于在线编辑,它可能不是sa的最佳选择。虽然我没怎么试过,所以不是一个好的人来评论它。

#2


4  

Why not just go the GUI route: right click, e.g., any foo.R file and select "Open with...", then pick Np++ and click the "always open this file type.." button. Rinse, lather, repeat.

为什么不直接使用GUI路径:右键单击,例如任何foo。R文件并选择“打开与……”,然后选择Np++,点击“总是打开这个文件类型..”按钮。泡沫冲洗,重复。

BTW, for R, if you don't already have it, get "NppToR" , a little app which lets you execute code directly from the Npp window.

顺便说一句,对于R,如果你还没有的话,你可以用NppToR,一个可以让你直接从Npp窗口执行代码的小程序。

#3


1  

On windows you can either:

在windows上,你可以:

  • manually edit the keys for the file type to set the value of HKEY_CLASSES_ROOT\FILE_TYPE\shell\edit\command where FILE_TYPE is the appropriate one for each of the files extensions you wish to change this is quite hard work or
  • 手动编辑文件类型的键,以设置HKEY_CLASSES_ROOT\FILE_TYPE\ FILE_TYPE\编辑\命令的值,其中FILE_TYPE为您希望更改的每一个文件扩展名,这是相当困难的工作。
  • you can use a program that does it for you such as the free Default Programs Editor
  • 您可以使用一个为您做这件事的程序,例如免费的默认程序编辑器

In either case the first thing to do is to back up the registry.

无论哪种情况,首先要做的就是备份注册表。

I would seriously suggest looking into using one of the many, some free IDEs as they will automatically include the run from edit environment, syntax highlighting, code completion and, in many cases, debugging as well.

我将认真地建议您使用其中的一种,一些免费的ide,因为它们将自动包括从编辑环境、语法突出显示、代码完成,以及在许多情况下,调试的运行。

#1


0  

Notepad++ is my favorite editor and I was in the same shoes as you are now.

记事本++ +是我最喜欢的编辑器,我和你现在的处境一样。

I am assuming that you are in Windows (Notepad ++ doesn't exist in Mac, saddest thing for me)

我假设你是在Windows操作系统(记事本++ +在Mac系统中不存在,这是我最难过的事情)

Please follow the steps mentioned in the below webpage and do as the author says.

请按照以下网页中提到的步骤,按照作者所说的去做。

http://hafniumcity.com/notepad_color.php

http://hafniumcity.com/notepad_color.php

Now for in-line editing , it may be not be the best choice for SAS. Although I haven't tried it much so not a good person to comment on it.

现在对于在线编辑,它可能不是sa的最佳选择。虽然我没怎么试过,所以不是一个好的人来评论它。

#2


4  

Why not just go the GUI route: right click, e.g., any foo.R file and select "Open with...", then pick Np++ and click the "always open this file type.." button. Rinse, lather, repeat.

为什么不直接使用GUI路径:右键单击,例如任何foo。R文件并选择“打开与……”,然后选择Np++,点击“总是打开这个文件类型..”按钮。泡沫冲洗,重复。

BTW, for R, if you don't already have it, get "NppToR" , a little app which lets you execute code directly from the Npp window.

顺便说一句,对于R,如果你还没有的话,你可以用NppToR,一个可以让你直接从Npp窗口执行代码的小程序。

#3


1  

On windows you can either:

在windows上,你可以:

  • manually edit the keys for the file type to set the value of HKEY_CLASSES_ROOT\FILE_TYPE\shell\edit\command where FILE_TYPE is the appropriate one for each of the files extensions you wish to change this is quite hard work or
  • 手动编辑文件类型的键,以设置HKEY_CLASSES_ROOT\FILE_TYPE\ FILE_TYPE\编辑\命令的值,其中FILE_TYPE为您希望更改的每一个文件扩展名,这是相当困难的工作。
  • you can use a program that does it for you such as the free Default Programs Editor
  • 您可以使用一个为您做这件事的程序,例如免费的默认程序编辑器

In either case the first thing to do is to back up the registry.

无论哪种情况,首先要做的就是备份注册表。

I would seriously suggest looking into using one of the many, some free IDEs as they will automatically include the run from edit environment, syntax highlighting, code completion and, in many cases, debugging as well.

我将认真地建议您使用其中的一种,一些免费的ide,因为它们将自动包括从编辑环境、语法突出显示、代码完成,以及在许多情况下,调试的运行。