user1905098
user1905098

Reputation:

insert lines in notepad

I have nearly 9,000 lines in a text file in Notepad++

How do I find all lines that say

source:         DATA

and INSERT these 2 lines below that line?

delete:
password:       ACTUALPASSWORD

Thanks.

Upvotes: 0

Views: 89

Answers (3)

hmatar
hmatar

Reputation: 2419

Use Ctrl-H then earch for source: DATA replace with source: DATA\r\ndelete:\r\npassword: ACTUALPASSWORD\r\n

This way you preserve new line formats.

Upvotes: 1

Change your your Search Mode to extended, and replace

source:         DATA

with

source:         DATA\ndelete:\npassword:       ACTUALPASSWORD

Upvotes: 1

Selim
Selim

Reputation: 1132

you search for
source: DATA
and replace it with
source: DATA
delete:
password: ACTUALPASSWORD

Upvotes: 0

Related Questions