Community
    • Login

    Insert Carriage Return "CR" before "LF"

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 3 Posters 4.4k 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.
    • Jose Emilio OsorioJ
      Jose Emilio Osorio
      last edited by

      Good Afternoon. How to insert Carriage Return “CR” before “LF” at the end of each line ?. Thanks for your help

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @Jose Emilio Osorio
        last edited by

        @Jose-Emilio-Osorio

        Edit > EOL Conversion > Windows (CR LF)

        If it’s greyed out, then Notepad++ thinks it’s already CRLF. In which case, you will have to change it to one of the others, then change it back.

        Equivalently, look in the lower-right status bar: the third field from the right is the line-ending field; you can change line endings by right clicking and selecting the ending you want… again, toggling to something else and back if it already thinks it is CRLF.

        f8a087c6-8cf4-43ae-ba4e-2affd3140ed3-image.png
        ff9da854-4e46-42f6-9549-0452d191be5d-image.png

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

          @Jose-Emilio-Osorio

          How to insert Carriage Return “CR” before “LF” at the end of each line ?

          They are probably already there and you need to do exactly nothing to insert them.

          If you are “unconfident” that Notepad++ is doing this for you, press the “Pilcrow” toolbar button…the one with this symbol on it:

          1096d341-751b-4d14-aa13-0890190fc3da-image.png

          In the Notepad++ toolbar, it is blue in color, not black.

          With that toolbar button in the depressed state, you will see the CR and LF in a Windows file, example:

          c1a3ed68-2955-43f0-98dd-669c5a52e220-image.png

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