Execute code within Notepad++

Help
jlw
2010-11-29
2013-01-25
  • jlw
    jlw
    2010-11-29

    Is there a simple way to use this plugin to execute python code that I'm currently editing within Notepad++?

    Thanks!

     
  • Yep, just create a script as follows

    exec(editor.getText())
    

    Add that script to your menu (with a shortcut maybe), toolbar, whichever you want, and that will run the script in the context of the plugin (so you can query variable state afterwards from the console, for instance).

    Dave.