Notepad++ has keyboard shortcuts built-in that can change the end-of-line convention for a specific line alone. This means one can inadvertently create a MIXED format file by accidentally typing the shortcut:
- Ctrl+M inserts a Mac style EOL character (i.e. 0x0D only) *on just that line*,
- Ctrl+J puts a UNIX style EOL character (i.e. (0x0A only) *on just that line*,
Question: Can these keyboard shortcuts be disabled or changed?
(I've scanned through Settings > Shortcut Mapper
and could not find Ctrl+M or Ctrl+J listed for EOL conversion.)
Thanks!
Best Answer
They are built in, but not in notepad++. Try it with plain notepad, or any other app, it will still work. They are common control ascii codes (that's where
ctrl
on that key comes from). Ctrl M will be decoded as0A
by keyboard controller/driver (similarly for otherCtrl
combinations). More info here: http://en.wikipedia.org/wiki/Control_characters