Menu

Stopping script

Help
Sam
2018-11-08
2020-11-09
  • Sam

    Sam - 2018-11-08

    Hi,

     
    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!

     
    • Sasumner

      Sasumner - 2018-11-08

      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.

       
      • RandomUser441

        RandomUser441 - 2020-11-09

        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

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.