Add sequential numbers to selected lines in Notepad++
-
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.
-
ALT+C (column editor) could make it in three steps.
make sure you are in the very first column
- add the space
- add the dot
- add the numbers
Cheers
Claudia -
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.