Community

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

    Using EOL Windows Mode, pressing enter at end of line only puts a CR with no LF

    Help wanted · · · – – – · · ·
    2
    3
    104
    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.
    • Chris Zimmer
      Chris Zimmer last edited by

      Like the title says. I go to the end of line and press return. NP++ is set to use Windows EOL, CRLF. Only a CR is put there without the LF. I found this problem because my compiler does not handle this case and must always have the CRLF to parse the file properly. Has anyone seen this?
      Thank you!

      Alan Kilborn 1 Reply Last reply Reply Quote 0
      • Alan Kilborn
        Alan Kilborn @Chris Zimmer last edited by

        @Chris-Zimmer

        I would start by checking the Shortcut mapper (see Settings menu) for the SCI_NEWLINE command. Normally it is set to Enter and Shift+Enter but with some experimentation I found that if the Enter (without Shift) is removed, that when you press Enter when editing a Windows file you will indeed only get a CR and no LF inserted in your doc.

        1 Reply Last reply Reply Quote 1
        • Alan Kilborn
          Alan Kilborn last edited by

          This is where you would look to check your setup for this:

          c7dab521-addf-4099-8043-a2e4ad5fa1b7-image.png

          Note that after I deleted Enter (without Shift) to test what would happen, I found that there was no easy way to put it back in! I was doing this in a “throwaway” version of Notepad++, so no harm no foul for me. I do recall the inability to add Enter in such a way coming up before a long time ago, so maybe some crafty searching of old postings will turn up how to achieve this (probably a manual editing of shortcuts.xml is required).

          But…@Chris-Zimmer , we need to verify if this is your problem as well before going too far down the road.

          1 Reply Last reply Reply Quote 1
          • First post
            Last post
          Copyright © 2014 NodeBB Forums | Contributors