How do you run a python script from within notepad++? [duplicate]

Plugins NppExec Execute (F6) is much more powerful than plain Run (F5). Install NppExec via Plugins, Plugin Manager. Then in F6 add/save the following: NPP_SAVE cd “$(FULL_CURRENT_PATH)” C:\Python34\python.exe -u “$(FULL_CURRENT_PATH)” In Plugins NppExec Console output filters (Shift+F6) add the following HighLight mask: *File “%FILE%”, line %LINE% Make sure it’s checked, and make it e.g. red …

Read more

Execute commands with notepad++

You can automatically add the current file using a variable in the execution string: C:\temp\test.exe “$(FULL_CURRENT_PATH)” The list of available variables is documented here. Examples: FULL_CURRENT_PATH = E:\My Web\main\welcome.html CURRENT_DIRECTORY = E:\My Web\main FILE_NAME = welcome.html NAME_PART = welcome EXT_PART = .html SYS.<var> e.g.: SYS.PATH = %PATH% CURRENT_WORD = <selection or word under cursor> CURRENT_LINESTR …

Read more