Is there a way to pass ruby environment variable so that np++ can execute ruby code in a terminal or cmd window on windows?
Also I cannot get autocomplete to work.
Npp++ 5.0.3 winxp ruby 1.8.6
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You can create an entry in the Run menu to run the current file in cmd by editing [NP++AppDir]\shortcuts.xml (where [NP++AppDir] is the Notepad++'s application directory in your personal settings folder)and adding a node in UserDefinedCommands:
<Command name="Launch in cmd" Ctrl="no" Alt="no" Shift="no" Key="116">cmd /K $(FULL_CURRENT_PATH)</Command>
This will add an entry: "Launch in cmd", bind it to F5, open a cmd prompt (which won't close after the program exits) and runs the current file.
Windows needs to associate the ruby file extension with the ruby interpreter, but this will make it generic for any given scripting language that you have available (or you can use "cmd \K ruby $(FULL_CURRENT_PATH)" to force it to use the ruby interpreter).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is there a way to pass ruby environment variable so that np++ can execute ruby code in a terminal or cmd window on windows?
Also I cannot get autocomplete to work.
Npp++ 5.0.3 winxp ruby 1.8.6
You can create an entry in the Run menu to run the current file in cmd by editing [NP++AppDir]\shortcuts.xml (where [NP++AppDir] is the Notepad++'s application directory in your personal settings folder)and adding a node in UserDefinedCommands:
<Command name="Launch in cmd" Ctrl="no" Alt="no" Shift="no" Key="116">cmd /K $(FULL_CURRENT_PATH)</Command>
This will add an entry: "Launch in cmd", bind it to F5, open a cmd prompt (which won't close after the program exits) and runs the current file.
Windows needs to associate the ruby file extension with the ruby interpreter, but this will make it generic for any given scripting language that you have available (or you can use "cmd \K ruby $(FULL_CURRENT_PATH)" to force it to use the ruby interpreter).