views:

457

answers:

3

When I'm using textmate, I simply hit "apple+r" and the program gets interpreted. How can I run a program from within notepad++? I see that F5 is for "Run", but pointing that to Python.exe simply opens up a terminal with python running. It does not run my script.

A: 

if u have the NppExec plugin (is by default) hit F6 and add the command that exec your script

python /path/to/script.py
clyfe
+3  A: 

You need to pass through the FULL_CURRENT_PATH environment variable to the program, as described in the notepad++ wiki:

python "$(FULL_CURRENT_PATH)"
Oded
A: 

Plugins NppExec Execute (F6) is much more powerful than plain Run (F5).
In F6 add/save the following

python "$(FULL_CURRENT_PATH)"

+++

In Plugins NppExec Console output filters (shift-F6) add the following HighLight mask:

*File "%ABSFILE%", line %LINE%, in*

Make sure it's checked, and make it e.g. red and underlined.

Upon "F6/execute" errors will be highlighted and clickable !

This works in NPP568, possibly older.

bjornhb