Community
    • Login

    mark a line using a single button with macro or any feature.

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 3 Posters 645 Views 2 Watching
    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.
    • ShekharS Offline
      Shekhar
      last edited by

      hi , i am new to using notepad++. how can i highlight a line by pressing a single key or by highlight a line by using a macro function.

      further , is it possible to put that blue dot using single key or macro (putted right next to numbers)

      Terry RT PeterJonesP 2 Replies Last reply Reply Quote 0
      • Terry RT Offline
        Terry R @Shekhar
        last edited by

        @Shekhar said in mark a line using a single button with macro or any feature.:

        is it possible to put that blue dot using single key or macro (putted right next to numbers)

        Ctrl-F2 is the default shortcut for adding a blue dot on the line the cursor is on.

        Terry

        1 Reply Last reply Reply Quote 0
        • PeterJonesP Offline
          PeterJones @Shekhar
          last edited by

          @Shekhar said in mark a line using a single button with macro or any feature.:

          highlight a line by pressing a single key or by highlight a line by using a macro function.

          By “highlight”, I assume you mean “select”, like what is accomplished by triple-clicking a line. Unfortunately, triple-click is not macro-recordable, and there is no single “scintilla command” that you can assign a shortcut to (that I am aware of).

          However, using Scintilla command IDs, you can craft your own macro:

          • Edit %AppData%\Notepad++\shortcuts.xml * *
          • Insert the following into the <Macros> section
                <Macro name="HomeShiftEnd" Ctrl="no" Alt="no" Shift="no" Key="0">
                    <Action type="0" message="2312" wParam="0" lParam="0" sParam="" />
                    <Action type="0" message="2315" wParam="0" lParam="0" sParam="" />
                </Macro>
            
          • Save.
          • Restart Notepad++

          Now you have a macro called “HomeShiftEnd” which will do what i think you want. You can assign a keyboard shortcut to that, just like any macro.

          1 Reply Last reply Reply Quote 2

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors