Notepad doesn't recognize my syntax as python. Please help
-
My notepad stopped recognising the code i type in, so when i run it in python/powershell the whole file is printed word for word instead of executing my commands. Please assist. Thanks.
-
Python and Powershell interpreter are responsible for execution your scripts, not npp.
Npp can run the interpreters and provide the current document as the parameter.
How did you run it previously?Cheers
Claudia -
@Claudia-Frank ok. im new to python and notepad. how should i run “it”?
-
several ways, either user run menu and function run, in the diaolg put something like
cmd /K python $(FULL_CURRENT_PATH)
$(FULL_CURRENT_PATH) will be automatically replaced by npp with the full path of
the current active document, which of course must be a saved fileor install NppExec plugin which does basically the same but offers a lot more extras
(worth to give it a try)or install python script plugin and use the python function exec and execfile.
The main purpose of this plugin is to interact with npp and scintilla but, could be used as well.
Restriction: is still python 2Cheers
Claudia -
@Claudia-Frank Thank you. Danke. Gracias. I’ll let you know how it works out.
MD