• Login
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.
  • E
    Ekopalypse @Wawuschel
    last edited by Ekopalypse Jun 18, 2020, 11:47 AM Jun 18, 2020, 11:46 AM

    @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
    • W
      Wawuschel
      last edited by Jun 18, 2020, 11:50 AM

      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
      • W
        Wawuschel
        last edited by Jun 18, 2020, 12:05 PM

        I wish there was a feature like this 😉

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

        E 1 Reply Last reply Jun 18, 2020, 12:21 PM Reply Quote 0
        • E
          Ekopalypse @Wawuschel
          last edited by Jun 18, 2020, 12:21 PM

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

          A 1 Reply Last reply Jun 18, 2020, 12:47 PM Reply Quote 1
          • A
            Alan Kilborn @Ekopalypse
            last edited by Jun 18, 2020, 12:47 PM

            @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

            E 1 Reply Last reply Jun 18, 2020, 1:20 PM Reply Quote 4
            • E
              Ekopalypse @Alan Kilborn
              last edited by Jun 18, 2020, 1:20 PM

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

              A 1 Reply Last reply Jun 18, 2020, 1:32 PM Reply Quote 0
              • A
                Alan Kilborn @Ekopalypse
                last edited by Alan Kilborn Jun 18, 2020, 1:33 PM Jun 18, 2020, 1:32 PM

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

                E 1 Reply Last reply Jun 18, 2020, 1:47 PM Reply Quote 0
                • E
                  Ekopalypse @Alan Kilborn
                  last edited by Jun 18, 2020, 1:47 PM

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

                  A 1 Reply Last reply Jun 18, 2020, 2:10 PM Reply Quote 1
                  • A
                    Alan Kilborn @Ekopalypse
                    last edited by Jun 18, 2020, 2:10 PM

                    @Ekopalypse

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

                    1 Reply Last reply Reply Quote 1
                    • E
                      Ekopalypse
                      last edited by Jun 18, 2020, 2:18 PM

                      Should we create a cheat sheet :-D

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