Menu ā–¾ ā–“

Is it possible to set multiple carets?

Help
2019-04-03
2019-04-03
  • Roland Heynemann

    Hey, I’m quite new to Python scripting inside of Notepad++. Since this editor supports using multiple cursors, I would love to control them via Python, too.

    How would one do so? Could you point me into a direction? I would like to set additional carets at certain text locations, maybe even pre-select a few characters at the same time. Is this possible via the API?

    Best regards and thanks in advance

     
  • Sasumner

    Sasumner - 2019-04-03

    Here's an example:
    editor.setSelection(0,0)
    editor.addSelection(5,6)
    editor.addSelection(10,15)

     
    šŸ‘
    1
  • Roland Heynemann

    Thank you!

     

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.