Still, you can do it with the advanced file/replace, but you can't apply that replacement to a group of files (like we can replace in all open documents). And that's a life saver sometimes...
There's any way i can do that in notepad++ (i need to replace chuncks of HTML code in some pages)?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm not sure about the \t and \r\n but I haven't tried it for a few versions. Please see http://notepad-plus.wiki.sourceforge.net/FindReplaceNewlineHowTo for everything I know about this topic and if you find that those characters do work now then please correct that article.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This is the only real flaw I have found in Notepad++ and that is that when searching you cannot search for something with a new line, for instance:
If I wanted to search for "hello
e
v
e
r
y
o
n
e"
I couldn't do it. Or If I wanted to search for a word and then replace it with a new line or some text and a new line I couldn't do it.
This is just a sort of suggestion for later versions.
Great programme though.
Still, you can do it with the advanced file/replace, but you can't apply that replacement to a group of files (like we can replace in all open documents). And that's a life saver sometimes...
There's any way i can do that in notepad++ (i need to replace chuncks of HTML code in some pages)?
Use a free text block replacer for that, like textrep:
http://www.free-to-try.com/textrep
As long as you don't need regex this will do. Of course, there are other tools that can perform similar or even more difficult tasks.
You are wrong. You CAN search for and add newline characters.
Use the CTRL+R advanced Find/Replace dialog.
You can enter newline characters here by pressing CTRL+M or CTRL+Enter and also tab characters by pressing CTRL+I.
In regex mode it is possible to add tabs by (re)placing \t and I believe newlines will also work with \r\n.
I'm not sure about the \t and \r\n but I haven't tried it for a few versions. Please see http://notepad-plus.wiki.sourceforge.net/FindReplaceNewlineHowTo for everything I know about this topic and if you find that those characters do work now then please correct that article.
Thanks! Notepad++ is amazing!