Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why Windows notepad put all the code line on a single line when I open a file created using Notepad++?

I have the following problem: I use Nodepad++ editor to write some text\code and I save my file into it, if later I open this file using the Windows notepad this lost the text format and put all the code line on a single line.

Why? Can this thing being a problem?

Tnx

Andrea

like image 816
AndreaNobili Avatar asked Nov 07 '13 09:11

AndreaNobili


1 Answers

CBroe's link: https://superuser.com/questions/362087/notepad-ignoring-linebreaks has a good description of the problem, if the file is in Unix or Mac format it treats line endings differently and Windows Notepad won't recognize them.

In Notepad++ you can change the End-Of-Line encodings through Edit > EOL Conversion > Windows Format, then save the file.

like image 191
baochan Avatar answered Sep 18 '22 13:09

baochan