开发者

Adding whitespace to web page source so that I can read it

开发者 https://www.devze.com 2022-12-17 07:36 出处:网络
I\'m curious about the web page I\'m viewing. I use the \"view--page source\" and get a window with the html.
  1. I'm curious about the web page I'm viewing.
  2. I use the "view--page source" and get a window with the html.
  3. I cut and paste this into notepad++.

  4. 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

0

精彩评论

暂无评论...
验证码 换一张
取 消