admin管理员组文章数量:1425733
I am trying to debug a problem, and I am using the View Page Source
in Chrome
.
A large portion of javascript and html is presented scrabled i.e. in a format with no identation and like:
gt&blabla>
etc
Is there a tool/way to always get a good format of the generated source?
I am trying to debug a problem, and I am using the View Page Source
in Chrome
.
A large portion of javascript and html is presented scrabled i.e. in a format with no identation and like:
gt&blabla>
etc
Is there a tool/way to always get a good format of the generated source?
- superuser./questions/315260/… – HttpNinja Commented Aug 5, 2013 at 16:55
- opera dragonfly formats the code well and is a nice debugger for javascript – bansi Commented Aug 5, 2013 at 16:55
- Maybe you want the DOM view instead. See developers.google./chrome-developer-tools/docs/elements. – Felix Kling Commented Aug 5, 2013 at 16:55
- 1 use this site to beautify your code ctrlq/beautifier – Vinod Louis Commented Aug 5, 2013 at 16:56
3 Answers
Reset to default 3Open the developer tools: Ctrl+Shift+I
or simply F12
You can see a nicely formatted and indented tree view of the source code under the Elements
tab.
If you hit F12 it will pull up the developer tools which gives you real good access to the source and scripts.
You can install chrome extension Quick source viewer
- Once installed, click on the Extension icon (top right of chrome which looks like puzzle), and pin the
Quick source viewer
you just installed- This would make the icon appear on the top right
- Now, open any page you want to view the source of and click on the
Quick source viewer
icon - You will see the page source opened that shows all the details in a better way
Note: If the icon doesn't work, restart chrome after installation
本文标签: javascriptHow can I always get a good format for view page sourceStack Overflow
版权声明:本文标题:javascript - How can I always get a good format for view page source? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745340655a2654246.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论