Search and relace - how to put in a line break?
-
Hi,
how can I use a linebreak in the sectionn search and replace?

Thanks for help.
-
Click extended in search mode
and use
\r\nif you want to have windows eol
\nif you want to have linux eol
\rfor MAC eol -
Thank you
ahh, “Escape Sequences” is the magic word 😊
https://docs.microsoft.com/en-us/cpp/c-language/escape-sequences?view=vs-2019#escape-sequences-1
https://docs.microsoft.com/en-us/cpp/c-language/escape-sequences?view=vs-2019#escape-sequences-1 -
I wish there was a feature like this 😉
see my GIF animation → https://s12.directupload.net/images/200618/fjy4lvd3.gif
-
multi line find/replace would be nice but I assume this won’t happen anytime soon.
-
@Ekopalypse said in Search and relace - how to put in a line break?:
multi line find/replace would be nice
The ToolBucket plugin offers it, although this isn’t an endorsement as I really don’t use that feature myself! :-)

-
thx, was not aware that a plugin has solved this already.
But this one of the things I would like to see in npp itself, currently
I’m doing this via pythonscript. -
@Ekopalypse said in Search and relace - how to put in a line break?:
one of the things I would like to see in npp itself,
You are very much NOT alone in this. :-)
I’m doing this via pythonscript.
With a nice UI?
THAT I would certainly like to see! :-) -
@Alan-Kilborn said in Search and relace - how to put in a line break?:
With a nice UI?
THAT I would certainly like to see! :-):-D No, by cheating.
-
Lots of “cheating” going on.
I guess my way of cheating for this is HERE. -
Should we create a cheat sheet :-D
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login