Copy paste with line number in Notepad++
notepad++
Solution
You should add line number to your document opened in nodepad++. Then you copied to .doc or other files. To realize this, there may be two ways. For both two ways. Select your lines in nodepad++.
1) Use TextFX->TextFX Tools->Insert line numbers.
Instead to this, 2) To remove unnecessary leading zeros
2.1)First Left indent TextFX->TextFX Edit->Indent text sticky left margin
2.2)Add numbers Edit->Column Editors in Number to Insert
- Set Intial Number 1
- Increase by 1
- Choose Dec option.
I hope this will help.
Problem
Can you please tell me how can I copy some lines of code in Notepad ++, along with its lines number ? That is, supposed I have a code.txt opened by notepad ++ like this (numbers are displayed by using Settings --> Preferences --> Editing --> Display line number): ``` 1 This is line 1 2 This is line 2 . . n This is line n ``` I want to copy it into a .doc / .odt file so that the line number is included in the result, NOT like this: ``` This is line 1 This is line 2 . . This is line n ```