Adding whitespace to web page source so that I can read it
- I'm curious about the web page I'm viewing.
- I use the "view--page source" and get a window with the html.
I cut and paste this into notepad++.
I manually parse through adding whitespace to make it readable to me.
Is there a better way to do开发者_运维知识库 the last step? I'm hoping something has been written which automates this process, giving the user a readable version of the source file.
Thanks for any help.
-bill
Try HTML Tidy
Numerous editors have support for HTML Tidy (if you use an editor that knows about HTML, check the menus or documentation); alternatively, you can run HTML Tidy from the command line.
There is HtmlTidy, which works in Notepad++
http://tidy.sourceforge.net
精彩评论