Notepad++ | Forum

Topic location: Forum home » General » General Chat
Narayan Rajak
Narayan Rajak Oct 6 '16

How to add particular word in notepad++ to every line?


1. Press CTRL-H to bring up the Find/Replace Dialog. Choose the "Regular expressions" checkbox near the bottom of the dialog.

2. To add "cotocus" to the beginning of each line, type ^ in the "Find what" field, and "cotocus" in the "Replace with" field. Then hit "Replace All".

3. To add "cotocus" to the end of each line, type $ in the "Find what" field, and "cotocus" in the "Replace with" field. Then hit "Replace All".