Menu

End Of Line and/or Line Break

2007-12-10
2012-11-13
  • Nobody/Anonymous

    I really enjoy working with Notepad++ on XML files. There is one feature that I use often that isn't available, or I can't find it, is the ability to Find/Replace line breaks or hard returns, so I have to either turn to GoLive or Dreamweaver. Is there an option for this somewhere and just can't find it?

     
    • Nobody/Anonymous

      View in hex with hex plugin and find/replace at will

       
    • fidvo

      fidvo - 2007-12-10

      You can do it in the Advanced Replace.

      TextFX -> TextFX Quick -> Find/Replace (or CTRL-R)

      Use CTRL-M for line breaks.

       
      • Nobody/Anonymous

        It depends on how hard your returns are...

        Perhaps it would be better to link to one of the many former messages, in which this is discussed before. This will also avoid answers being unclear, resulting in only more messages about the same subject.

        If you have a question, first look for an answer. Then, if you can't find it, ask your question.

         
        • Nobody/Anonymous

          Ends-of-lines is hard.  But now this thread covers it since the two methods of doing anything with end-of-lines (that isn't standard regex) are here:

          You can do it in the Advanced Replace.

          TextFX -> TextFX Quick -> Find/Replace (or CTRL-R)

          Use CTRL-M for line breaks.

          AND

          View in hex with hex plugin and find/replace (at will :

          Plugins -> HEX-Editor -> View in HEX    CTRL+Alt+Shift+H (toggle)

          (and Ctrl+F/H/R to bring up the find/replace dialogs)

          "0d 0a" is both carriage-return and newline (too bad \r\n doesn't work in ascii)

           
MongoDB Logo MongoDB