• Login
Community
  • Login

Line feed in a notepad++ file

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
4 Posts 3 Posters 4.7k 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.
  • J
    Jo Business
    last edited by Dec 4, 2021, 2:26 AM

    Hello

    I’m trying to use the “replace” function in notepad to replace the “line breaks” with semicolons.
    For that I use replace : \but notepad++ tells me that it doesn’t find anything. But my file has lines and line breaks.
    How can I tell notepadd++ to modify the “return to line” by another sign ? Thank you in advance for your help community.screenshit 3H25 4dec.png

    A 1 Reply Last reply Dec 4, 2021, 2:43 AM Reply Quote 0
    • A
      Alan Kilborn @Jo Business
      last edited by Dec 4, 2021, 2:43 AM

      @jo-business

      Why do you think it should find a line-ending as \n\r ?
      In the status bar it says you have a Windows (CR LF) file.
      As CR is \r and LF is \n, you should be searching for \r\n to find line-endings.
      Or…better yet, use Regular expression mode and find any type of line-ending with \R

      J 1 Reply Last reply Dec 4, 2021, 7:29 AM Reply Quote 1
      • J
        Jo Business @Alan Kilborn
        last edited by Dec 4, 2021, 7:29 AM

        @alan-kilborn I apologize I am a bit of a beginner. I just tried to follow a tutorial that explained how to replace “line breaks” with the “|” sign and despite your message, I don’t really understand how to do it.

        Could you explain to me how I can do this?

        For the moment in the search tab I put : \nThey’re not the only ones.

        and in the replace tab I put : " | ". but notepad does not find visibly in my file what corresponds to \n\r

        I hope to have been clear screenshot 4dec 8h29.png

        thank you for advance

        N 1 Reply Last reply Dec 4, 2021, 8:00 AM Reply Quote 0
        • N
          Neil Schipper @Jo Business
          last edited by Dec 4, 2021, 8:00 AM

          @jo-business You didn’t take @alan-kilborn’s advice. Change what you have in the Recherche box to \r\n and you should be fine.

          Also, play with the menu options under View -> Show Symbol (or it’s equivalent in your language) to help you to see what is normally invisible but sometimes important.

          Finally, I’m pretty sure:

          For the moment in the search tab I put : \nThey’re not the only ones.

          is not what you actually typed. Have a look at https://community.notepad-plus-plus.org/topic/21965/please-read-before-posting/1 and learn to use the triple backquote techniques for (mostly) trouble free communication when posting here.

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