I prefer using notepad ++ for developing,
How do I execute the files in Python through Notepad++?
I prefer using notepad ++ for developing,
How do I execute the files in Python through Notepad++?
Here is a plugin to do this: http://magicpc.wordpress.com/2009/11/03/notepad-plugin-to-run-python-scripts/
(Scroll to the bottom of the page to download it)
Edit:
I would go for option three.
First option: (Not safe)
The code opens “HKEY_CURRENT_USER\Software\Python\PythonCore”, if the key exists it will get the path from the first child key of this key.
Check if this key exists, and if does not, you could try creating it.
Second option:
Use a batch script that runs the Python script and then create a shortcut to that from Notepad++.
As explained here: http://it-ride.blogspot.com/2009/08/notepad-and-python.html
Third option: (The easiest one)
Open Notepad++. On the menu go to: Run -> Run.. (F5). Type in:
C:\Python26\python.exe "$(FULL_CURRENT_PATH)"
Note: If you have Python 3.1: type in Python31 instead of Python26
Now, instead of pressing run, press save to create a shortcut for it.
Finish coding in notepad.
open the command prompt
cd <wherever you have installed python>
python <filepath to that notepad file with your code in it>
DONE!