Due to historical reasons, resulting in the windows,unix/linux,mac between the three, the file used in the carriage return newline character, the method is different.
This leads many people to encounter the confusion of the carriage return newline character and the need to convert between different formats.
Where, for a detailed explanation of the carriage return newline character, go to see here [13]
Here, we describe how to convert between these three through the notepad++ implementation.
3.13.1. Viewing the current file format (what characters are used for line breaks)
Currently the platform for Windows, so show all characters by:
The default is to look at the CR LF for Windows:
3.13.2. Converting from Windows to unix/linux format
Then go to the format from the current Windows, convert to UNIX format:
Then the CR LF of Windows becomes Unix/linux's LF:
3.13.3. Convert from Unix/linux to MAC format
Then go from the current Unix/linux format, convert to MAC format:
Then Unix/linux's LF becomes the Mac's CR:
3.13.4. Converting from MAC format to Windows format
Then go to convert from the current MAC format to the Windows format:
Then the Mac's CR becomes the CR LF for Windows:
3.13. Conversion between WINDOWS,UNIX,MAC three formats in notepad++