內容簡介
程式設計師喜歡使用空格、換行符號、新行、tab、縮進等來使他們的 HTML 文件更容易閱讀。這有助於協作和除錯 HTML 文件。但是,所有這些特性都會增加 HTML 文件的檔案大小,而這種結構性資訊對於瀏覽器而言是完全被忽略的。
此外掛可將空格、換行符號、新行和 TAB 從 HTML 文件中移除,因此您可以在撰寫 HTML 時放心地使用這些功能,而不會膨脹最終的 HTML 文件。
這個外掛還能標記 HTML 模板的區域,以保留您希望保留的空白 - 例如JavaScript必須具備換行符號及新行的地方。
此外,此外掛不會影響 HTML 註解。
外掛標籤
開發者團隊
原文外掛簡介
Coders like to use spaces, carriage returns, new lines, tabs and indentation to make their HTML documents human-readable. This helps collaboration and debugging of the HTML document. However, all these features add to the filesize of the resultant HTML document. This structural information is totally ignored by browsers.
This plugin removes spaces, carriage returns, new lines and tabs from your HTML document. You can therefore freely use these features while writing HTML, safe in the knowledge that it will not bloat the final HTML document.
With this plugin you can also mark areas of your HTML template where you want to preserve white space – for example – in areas containing Javascript which needs carriage returns and new lines to function correctly.
HTML comments are not affected by this plugin.
