Read and respond to this message at:
Since so many people have asked for help in running external applications, I
decided to write a simple tutorial to simply describe this process. I'm assuming
that you want to run a compiler or interpreter, so this will revolve around
that assumption, but if you read the NppExec commands, and have some knowledge
of windows file systems, it should be a breeze to tweak the following guide.
1. Grab a copy of the binary NppExec (NppExec_***_dll.zip) at
2. Close Notepad++ and unzip the file and place the DLL file in the plugins
folder of Notepad++, so if you did the default install, place the DLL in c:\Program
3. Run Notepad++
4. Under the plugins menu item, there should be an entry saying NppExec. Click
on the item that says execute under NppExec
5. Type in "NPP_run" the path of the application you want to
run (c:\python25\python.exe for a default install of python 2.5),
and "$(FILE_CURRENT_PATH)" (include the quotes for this) which is the variable
for the file that is open.
6. So you should have typed something resembling:
NPP_RUN c:\python25\python.exe "$(FILE_CURRENT_PATH)"
for your script to run python
7. Save the script and now whenever you run your application, python for example,
it will run your file.
8. To run it, go into nppexec under plugins (or press F6) and select the script,
and click OK.
Remember that you can always include the parameters for your compiler, like
you would do in a console window, but that you need NPP_exec before it, which
basically says to run the application as a child of notepad++. Remember to include
the quotes when you type "$(FILE_CURRENT_PATH)" since they tell the program
to run that file. Also, keep in mind that depending on your system settings,
program settings an all that stuff, your console may automatically close after
running. In that case you may want to place a system("pause") (for you C programmers
out there, yes, I know this is bad practice) or something to let you pause the
Hope this helps anyone out there
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: