Community
    • Login

    Line feed in a notepad++ file

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 3 Posters 8.3k Views 2 Watching
    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.
    • Jo BusinessJ Offline
      Jo Business
      last edited by

      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

      Alan KilbornA 1 Reply Last reply Reply Quote 0
      • Alan KilbornA Offline
        Alan Kilborn @Jo Business
        last edited by

        @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

        Jo BusinessJ 1 Reply Last reply Reply Quote 1
        • Jo BusinessJ Offline
          Jo Business @Alan Kilborn
          last edited by

          @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

          Neil SchipperN 1 Reply Last reply Reply Quote 0
          • Neil SchipperN Offline
            Neil Schipper @Jo Business
            last edited by

            @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

            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