Menu

how replace text with linebreak?

2007-06-05
2012-11-13
  • Nobody/Anonymous

    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?

     
    • Nobody/Anonymous

      great! this really helped, thanks!

       
    • BNOE-AFK

      BNOE-AFK - 2007-06-05

      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.

       
    • BNOE-AFK

      BNOE-AFK - 2007-06-06

      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)

       
      • pshute

        pshute - 2007-06-06

        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.

         
MongoDB Logo MongoDB