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
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login