Is it possible to autoreplace (using Ctrl+H) a certain text with something containing a linebreak?
If I select text with a linebreak I can replace it by something else, removing the linebreak, but I cannot seem to replace something in something WITH a line break.
Anyone any ideas?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
1. Use the Advanced Replace (CTRL + R)
2. In the top window, enter the character(s) you want to search for
3. In the bottom window, enter the replacement text, using CTRL+M for a newline
4. Click on Find to find the first one
5. Click on Replace Rest to replace everything else
(Note : at the bottom of the dialogue box, you'll see you can also use CTRL+I for a tab)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is it possible to autoreplace (using Ctrl+H) a certain text with something containing a linebreak?
If I select text with a linebreak I can replace it by something else, removing the linebreak, but I cannot seem to replace something in something WITH a line break.
Anyone any ideas?
great! this really helped, thanks!
I know that (for example) MS Word can do this, but I don't believe it's possible within Notepad++.
Would be a useful feature though. Would advise sending a message to the features list.
Forgive me, this is possible
1. Use the Advanced Replace (CTRL + R)
2. In the top window, enter the character(s) you want to search for
3. In the bottom window, enter the replacement text, using CTRL+M for a newline
4. Click on Find to find the first one
5. Click on Replace Rest to replace everything else
(Note : at the bottom of the dialogue box, you'll see you can also use CTRL+I for a tab)
I believe that control+m only works with the advanced find if the regex option is turned off. See http://notepad-plus.sourceforge.net/uk/newlineFindReplace-HOWTO.php for details.