Is there a way to stop python scripts after running them? Eg after running the BracketHighlighter sample script, I want to revert to the original behaviour with no hightlighting of brackets. How can I do that?
Thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
For that script (of which I am the author), exactly the way it is provided as a sample, there is no good way to 'stop' it. It could be rearchitected a bit such that it is easily 'stoppable'. Of course, simply restarting Notepad++ and then not running that script again effectively stops it. If you are truly interested in dynamic start/stop of it, I could look into what code changes that would entail; let me know if interested.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Sasumner, I am for sure interested to stop a scripts, I hopped and it would be like this:
1- menu [pluggins> Python Script> Running Scripts] and have a list of running scripts, and each script would have Reload/Stop submenu entery.
2- Currently it is possible to add a button to Menu, and Toolbar to run a script, I think it would be amazing to be able to have a button to stop the script as well as starting it.
If you are planning to implement this feature please let me know, and thank you very much for your work, it is amazing
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
For that script (of which I am the author), exactly the way it is provided as a sample, there is no good way to 'stop' it. It could be rearchitected a bit such that it is easily 'stoppable'. Of course, simply restarting Notepad++ and then not running that script again effectively stops it. If you are truly interested in dynamic start/stop of it, I could look into what code changes that would entail; let me know if interested.
Hi Sasumner, I am for sure interested to stop a scripts, I hopped and it would be like this:
1- menu [pluggins> Python Script> Running Scripts] and have a list of running scripts, and each script would have Reload/Stop submenu entery.
2- Currently it is possible to add a button to Menu, and Toolbar to run a script, I think it would be amazing to be able to have a button to stop the script as well as starting it.
If you are planning to implement this feature please let me know, and thank you very much for your work, it is amazing