Community

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

    Add sequential numbers to selected lines in Notepad++

    General Discussion
    3
    3
    14533
    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.
    • Sean McBride
      Sean McBride last edited by

      Is there a way to create a macro that will turn:

      one
      two
      three
      

      into:

      1. one
      2. two
      3. three
      

      In Textpad, in regular expressions mode, one simply replaces “^” with "\i. " and binds it to a macro name.

      Claudia Frank 1 Reply Last reply Reply Quote 0
      • Claudia Frank
        Claudia Frank @Sean McBride last edited by

        @Sean-McBride

        ALT+C (column editor) could make it in three steps.

        make sure you are in the very first column

        1. add the space
        2. add the dot
        3. add the numbers

        Cheers
        Claudia

        1 Reply Last reply Reply Quote 0
        • Scott Sumner
          Scott Sumner last edited by

          If you have more than a few lines to number, consider using the “Number to Insert” feature of the “Column / Multi-Selection Editor”…see the Edit menu’s “Column Editor…” selection, in addition to Claudia’s suggestion to inserting the . and the space.

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