Re: New System, New Editor?
- Posted by ghaberek (admin) Nov 12, 2014
- 3394 views
Thanks, bug! How do I get NPP to actually run the code I have open?
Here are the basic steps to adding a new command in Notepad++.
- Click Run > Run... (or press F5).
- Enter the following in The Program to Run field...
"C:\Euphoria\bin\euiw.exe" "$(FULL_CURRENT_PATH)"
- Click Save...
- Enter "Run with Euphoria" into the Name field.
- Select an optional shortcut key (e.g. Ctrl+F5) and click OK.
That being said, I noticed long ago that this does not have "Start in" option, which is useful for getting your ex.err file in the proper directory when something crashes. I have resorted to building my own "start" utility that allows me to change directory to the current path, and then launch the Euphoria interpreter with the current file (code follows). I typically bind this so I don't have to launch the interpreter to launch another interpreter. Update the command in step 2 above to use startw instead:
I also switch the shortcut keys around so Run with Euphoria is F5 and the generic Run... dialog is Ctrl+F5.
Get it here: startw.exw
-Greg