david
david

Reputation: 292

Notepad++ comment every opened file

Using Notepad++, how would I add a /* to the beginning of the first line of every opened file, using the replace tool?

My failed attempt:

Find what: /^(.*)$/m

Replace with: /*$1

This results with 0 hits.

Upvotes: 0

Views: 37

Answers (1)

Toto
Toto

Reputation: 91385

How about:

Find what: ^.*$
Replace with: /*$0

Check Regular expresion and Dot matches newline

Upvotes: 1

Related Questions