Some text editors, like Notepad2, have the ability to run the file that's being edited. Can this be done with Notepad++?
|
|
Yep. Add something like this to the shortcuts.xml file in C:\Documents and Settings\(username)\Application Data\Notepad++:
That will launch the (saved) file with its default application. |
|||||||||
|
|
I guess you mean a Plugin to execute xour commands or scripts. There is an officially supported Plugin for that on the N++ Plugindirectory called NppExec |
|||
|
|
|
NPPExec didn't work for me so I tried the "RunMe" plugin written by F. Stellari which works like a charm. It executes files based on their extension simply by pressing a key or a key combination. By default RunMe is "Shift + F5" but you can easily change this to F5 changing Notepad++'s keyboard shortcut settings. Current download url is: http://sites.google.com/site/fstellari/nppplugins If this should change, search for "notepad++ runme" |
|||
|
|
|
The answer by boot13 is a little overly complicated. The Run menu and command will do this. It also has the ability to save the command with an assigned hotkey. This is then saved to the UserDefinedCommands. The option that I prefer is the NppExec plugin. This is far more capable and flexible when choosing how to run a program, and can run things in the command line with console output as well as launching windows applications. |
|||
|