• Login
Community
  • Login

Add sequential numbers to selected lines in Notepad++

Scheduled Pinned Locked Moved General Discussion
3 Posts 3 Posters 19.0k 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.
  • S
    Sean McBride
    last edited by Jul 28, 2016, 8:44 PM

    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.

    C 1 Reply Last reply Aug 10, 2016, 1:47 AM Reply Quote 0
    • C
      Claudia Frank @Sean McBride
      last edited by Aug 10, 2016, 1:47 AM

      @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
      • S
        Scott Sumner
        last edited by Aug 10, 2016, 11:52 AM

        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