Often encounter such a phenomenon, Notepad open edit HTML code, save after the format is messy, the code is all stacked on one line. Sometimes it's a very silent situation.
Of course, in the pure HTML code, the format of the impact is not very large, the most affect the readability of the code, but if the page has a JS code, some JS code a line followed by comments, then the problem comes,
When the code is indented a line, the JS comment will comment out all the code behind it, which is a bit awkward.
Because the usual work often encountered such a situation, and later through the study, probably find the problem lies.
I am in this case, the computer is Windows, the server is Linux, it may be because the original editor with various editors of HTML code (Dw,hbuilder,sublime, and so on) does not have the default saving text format reasons, Cause the local Windows file to go to Linux on the Linux automatically into the UNIX format, so open the code with Notepad is stacked together, and then found notepad++ this software, the format of the messy HTML file download, with notepad++ Open, In edit-document format conversion-converted to Windows format, after such a conversion, the code is neatly formatted, even if you later open with Notepad, or online notepad editing, there is no code heap together with the situation
If you have a similar situation, you might want to try it this way.
Edit the HTML file with Notepad after saving the code is all piled up, Notepad open HTML file format is messed up