Home

May 20, 2018

Introducing extended line endings support in Notepad

authorarticle: Master3395
Notepad-before.png
video: 
youtube: 
sources: microsoft
keywords: blog, msdn, microsoft, windows, 10, windows 10
Category: Microsoft
Posted by: Admin

For many years, Windows Notepad only supported text documents containing Windows End of Line (EOL) characters - Carriage Return (CR) & Line Feed (LF). This means that Notepad was unable to correctly display the contents of text files created in Unix, Linux, and macOS.

For many years, Windows Notepad only supported text documents containing Windows End of Line (EOL) characters - Carriage Return (CR) & Line Feed (LF). This means that Notepad was unable to correctly display the contents of text files created in Unix, Linux, and macOS.

For example, here’s a screenshot of Notepad trying to display the contents of a Linux .bashrc text file, which only contains Unix LF EOL characters:

As you can see, Notepad is incorrectly displaying the file’s contents, making the file look garbled. This has been a major annoyance for developers, IT Pros, administrators, and end users throughout the community.

Today, we’re excited to announce that we have fixed this issue!

Starting with the current Windows 10 Insider build, Notepad will support Unix/Linux line endings (LF), Macintosh line endings (CR), and Windows Line endings (CRLF) as usual. 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.

Here’s a screenshot of the newly updated Notepad displaying the contents of the same Unix/Linux .bashrc file we saw earlier:

Also note that the status bar indicates the detected EOL format of the currently open file.

As with any change to a long-established tool, there’s a chance that this new behavior may not work for your scenarios, or you may prefer to disable this new behavior and return to Notepad’s original behavior. To do this, you can change the following registry keys in the following location to tweak how Notepad handles pasting of text, and which EOL character to use when Enter/Return is hit:

[HKEY_CURRENT_USER\Software\Microsoft\Notepad]

We hope that you find this change useful and look forward to hearing your feedback

authorarticle: Master3395
Notepad-before.png
video: 
youtube: 
sources: microsoft
keywords: blog, msdn, microsoft, windows, 10, windows 10

Comments:

comments powered by Disqus

Return

Sponsored Ads:

Discord

Page 1 of 586  >  >>

Microsoft may have solved customers' console chaos if they did this

xbox.webp

Nov 27, 2020 | Category: Microsoft | Comments

During a lengthy interview with The Verge, Phil Spencer reveals that the Xbox team has been thinking about how to solve the pre-order chaos.

read more…

Microsoft discounts M365 Business Premium by 25%

Microsoft.jpg

Nov 26, 2020 | Category: Microsoft | Comments

Citing "Small Business Saturday," an upcoming American Express-created promotional event, Microsoft is cutting Business Premium's per-user per-month cost to $15.

read more…

Now Chrome extensions have to answer for themselves

chrome.webp

Nov 25, 2020 | Category: Google | Comments

From January next year, Google will require extensions to Chrome to explain what user data is used for.

read more…

Page 1 of 586  >  >>