Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Mark the column by macro

    Help wanted · · · – – – · · ·
    2
    2
    67
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Petr Jaja
      Petr Jaja last edited by

      I would like use a macro to select column from position X of the second line to position Y of the last line.
      Please is there some simper solution than X times repeat message 2306 ….and next commands?
      Where can I find some description or manual for macros syntax in Notepad++?

      d97f57d0-cb2d-45c0-bb4b-3a49cafd2614-image.png

      PeterJones 1 Reply Last reply Reply Quote 0
      • PeterJones
        PeterJones @Petr Jaja last edited by PeterJones

        @Petr-Jaja ,

        Please is there some simper solution than X times repeat message 2306

        Sorry, not that I know of. The macro language is a simplistic language that just sends messages to the scintilla editor components for the active editor window, or sending GUI commands (activate menus, etc) to the Notepad++ GUI. It’s essentially recording keystrokes.

        Where can I find some description or manual for macros syntax in Notepad++?

        The official docs at https://npp-user-manual.org/docs/macros/ have a link to the config-file description for the macros section of shortcuts.xml, and that has a link to the detailed description from Scintilla for all the Scintilla messages.

        If you want to do something more complicated – especially if you want X and Y to be variables – then you will need one of the scripting plugins, which embeds the full features of your favorite programming language (Python, Lua, JavaScript, Perl, …) into the Notepad++ environment, so the programming language has direct access to the scintilla editors and the Notepad++ GUI. That makes loops or variables possible. Each of those refenced plugins has good documentation

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright © 2014 NodeBB Forums | Contributors