4

In versions earlier than 7, Notepad interprets CRLF as a newline. While on Mac/Unix newline is just LF. Have they(MS) added this essential feature in the new Notepad??

PS: Don't have a Win 7 machine around, otherwise would have checked out myself.

1

3 Answers 3

7

Just tried it, and no, Notepad still needs a CR character to insert a new line(Windows 7, build 7600 x64). The following ASCII file (0x0A == LF)

48 65 6c 6c 6f 0a 57 6f  72 6c 64 0a 0a           |Hello.World..|

renders as:

alt text

3
  • 2
    why Microsoft...why??? boohoooohooo...
    – detj
    Nov 6, 2009 at 22:08
  • 5
    Cause they would be sued for having included a too powerful text editor in Windows (after IE and Media Player) ;-)
    – Snark
    Nov 6, 2009 at 22:38
  • From devblogs.microsoft.com/commandline/extended-eol-in-notepad "New files created within Notepad will use Windows line ending (CRLF) by default, but it will now be possible to view, edit, and print existing files, correctly maintaining the file’s current line ending format."
    – Jason S
    Jun 19, 2020 at 7:14
3

Wordpad always supported this feature, and Wordpad in windows 7 is much enhanced in other ways. It's almost a 'Microsoft Word Lite' now.

1
  • though worth noting that if you open a word with unix line endings(LF), while it shows it, if you click save, it will save it with windows line endings(CRLF), which may or may not be what you want but is worth knowing about.
    – barlop
    May 2, 2018 at 16:01
0

Since Windows 10 1903 it does support unix line endings. This is the announcement blog port.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.