Edit the HTML file with Notepad after saving the code is all piled up, Notepad open HTML file format is messed up

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.