방법 2 출처(http://bytes.com/topic/python/answers/698915-python-notepad)
{{|
There is a simple way to do it.
In the Run menu, you can see options like "Lunch in firefox" and more.
These options are written in a file called shortcuts.xml, located in the folder where you installed NP++.
Open this file, and inside <
UserDefinedCommands> you'll find this row:
Expand|Select|Wrap|Line Numbers
<Command name="launch in Firefox" Ctrl="yes" Alt="yes" Shift="yes" Key="88">firefox "$(FULL_CURRENT_PATH)"</Command>
All you need to do is copy this line and change some things. Then you'll have something like this:
Expand|Select|Wrap|Line Numbers
<Command name="Run with Python" Ctrl="no" Alt="no" Shift="yes" Key="112">python "$(FULL_CURRENT_PATH)"</Command>
(I chose Shift+F1, but you can choose any keys you like.)