Community
    • Login

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

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    11 Posts 3 Posters 1.2k 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 Offline
      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 Offline
        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 Offline
          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 Offline
            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 Offline
              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 Offline
                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 Offline
                  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 Offline
                    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 Offline
                      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 Offline
                        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 Offline
                          Ekopalypse
                          last edited by

                          Should we create a cheat sheet :-D

                          1 Reply Last reply Reply Quote 1

                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                          With your input, this post could be even better 💗

                          Register Login
                          • First post
                            Last post
                          The Community of users of the Notepad++ text editor.
                          Powered by NodeBB | Contributors