- The symbol (arrow) on the Enter key is a bit misleading, it suggests down first (line feed) and left (carriage return), but Windows uses CR then LF.
- Can anyone find a good video demonstrating the physical meanings on a typewriter/other hardware? I couldn't find one.
- Notepad finally added proper support for CR and LF in Windows 10.
Introducing extended line endings support in Notepad – Windows Command Line Tools For Developers
https://blogs.msdn.microsoft.com/comman ... n-notepad/
- If it doesn't work in Notepad (i.e. the enters are there but don't display), you can try WordPad. You can also try copying in Notepad and pasting somewhere else, this can reveal the hidden enters.
- A further thing to know about is word wrap in Notepad, it creates CRCRLFs. Create at least one long line, set word wrap to on, and save the file, then try ControlGetText on the Edit control.
Why does Windows Vista's Notepad randomly move the cursor after saving a file? - Super User
https://superuser.com/questions/57190/w ... ing-a-file
Code: Select all
q:: ;reveal hidden enters
ControlGetText, vText, Edit1, A
vText := StrReplace(vText, "`r", "_R")
vText := StrReplace(vText, "`n", "N_")
MsgBox, % vText
return
- Another thing is that in older versions of Windows (e.g. XP but not 7), if you do Ctrl+Left and Ctrl+Right, that will stop halfway through the 'enter' (line break), between the CR and the LF. Thankfully this was later changed (I believe it's to do with the properties of Edit controls rather than anything Notepad-specific.) I ended up with what I call lone enter characters, after having used Ctrl+Shift+Left/Right and Del to delete words. (I had assigned Ctrl+Backspace/Ctrl+Del hotkeys which I still use.)
EM_SETWORDBREAKPROC message (Windows)
https://msdn.microsoft.com/en-us/librar ... s.85).aspx