Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Insert Carriage Return "CR" before "LF"

    Help wanted · · · – – – · · ·
    3
    3
    175
    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 Osorio
      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

      PeterJones 1 Reply Last reply Reply Quote 0
      • PeterJones
        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 Kilborn 1 Reply Last reply Reply Quote 2
        • Alan Kilborn
          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
          Copyright © 2014 NodeBB Forums | Contributors