Community
    • Login

    Search and relace - how to put in a line break?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    11 Posts 3 Posters 586 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • WawuschelW
      Wawuschel
      last edited by

      Hi,

      how can I use a linebreak in the sectionn search and replace?

      Notepad-linebreak.png

      Thanks for help.

      EkopalypseE 1 Reply Last reply Reply Quote 0
      • EkopalypseE
        Ekopalypse @Wawuschel
        last edited by Ekopalypse

        @Wawuschel

        Click extended in search mode
        and use
        \r\n if you want to have windows eol
        \n if you want to have linux eol
        \r for MAC eol

        1 Reply Last reply Reply Quote 2
        • WawuschelW
          Wawuschel
          last edited by

          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

          1 Reply Last reply Reply Quote 0
          • WawuschelW
            Wawuschel
            last edited by

            I wish there was a feature like this 😉

            see my GIF animation → https://s12.directupload.net/images/200618/fjy4lvd3.gif

            EkopalypseE 1 Reply Last reply Reply Quote 0
            • EkopalypseE
              Ekopalypse @Wawuschel
              last edited by

              multi line find/replace would be nice but I assume this won’t happen anytime soon.

              Alan KilbornA 1 Reply Last reply Reply Quote 1
              • Alan KilbornA
                Alan Kilborn @Ekopalypse
                last edited by

                @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! :-)

                4688d0c9-ca29-49a1-a1c4-dd3905d9e347-image.png

                EkopalypseE 1 Reply Last reply Reply Quote 4
                • EkopalypseE
                  Ekopalypse @Alan Kilborn
                  last edited by

                  @Alan-Kilborn

                  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.

                  Alan KilbornA 1 Reply Last reply Reply Quote 0
                  • Alan KilbornA
                    Alan Kilborn @Ekopalypse
                    last edited by Alan Kilborn

                    @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! :-)

                    EkopalypseE 1 Reply Last reply Reply Quote 0
                    • EkopalypseE
                      Ekopalypse @Alan Kilborn
                      last edited by

                      @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.

                      Alan KilbornA 1 Reply Last reply Reply Quote 1
                      • Alan KilbornA
                        Alan Kilborn @Ekopalypse
                        last edited by

                        @Ekopalypse

                        Lots of “cheating” going on.
                        I guess my way of cheating for this is HERE.

                        1 Reply Last reply Reply Quote 1
                        • EkopalypseE
                          Ekopalypse
                          last edited by

                          Should we create a cheat sheet :-D

                          1 Reply Last reply Reply Quote 1
                          • First post
                            Last post
                          The Community of users of the Notepad++ text editor.
                          Powered by NodeBB | Contributors