Free Republic
Browse · Search
General/Chat
Topics · Post Article

To: dayglored
Do I read this as meaning that when hitting the key while editing a file, notepad will insert according to context? That is, if there are nearby CRLFs, it inserts a CRLF; nearby CR's, it inserts a CR; nearby LF's, it inserts a LF?
7 posted on 05/09/2018 9:49:48 AM PDT by C210N (Republicans sign check fronts; 'Rats sign check backs.)
[ Post Reply | Private Reply | To 1 | View Replies ]


To: C210N

I would be pleasantly surprised if it did all that.


11 posted on 05/09/2018 9:53:44 AM PDT by rightwingcrazy
[ Post Reply | Private Reply | To 7 | View Replies ]

To: C210N
> Do I read this as meaning that when hitting the key while editing a file, notepad will insert according to context? That is, if there are nearby CRLFs, it inserts a CRLF; nearby CR's, it inserts a CR; nearby LF's, it inserts a LF?

Yeah, context. These are just plain text docs, so there's no useful metadata or header, and the only thing for the editor to do is read until it hits either an LF or a CR, figure out what the EOL looks like, and use that convention for that file.

For newly created files, it will still default to Windows CR-LF sequence.

Other editors have been doing this for 30+ years. It's not rocket science. But until recently, Microsoft refused to play nice with other OSes and so every editor-user in WindowsLand has suffered with the fact that the default Windows editor was brain-dead by design.

12 posted on 05/09/2018 9:54:03 AM PDT by dayglored ("Listen. Strange women lying in ponds distributing swords is no basis for a system of government.")
[ Post Reply | Private Reply | To 7 | View Replies ]

Free Republic
Browse · Search
General/Chat
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson