Community
    • Login

    Add sequential numbers to selected lines in Notepad++

    Scheduled Pinned Locked Moved General Discussion
    3 Posts 3 Posters 18.8k Views
    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 McBrideS
      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 FrankC 1 Reply Last reply Reply Quote 0
      • Claudia FrankC
        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 SumnerS
          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
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors