我的HTML代码,看起来所有捣碎,如:如何添加换行符在冗杂的HTML代码
<html><head> <script type="text/javascript"> window.onload = runJcript('fixads()');</script> <link rel="stylesheet" href="http://wik253.googlecode.com/files/jquery.ui.all.css" type="text/css"> <link rel="stylesheet" href="http://wik253.googlecode.com/files/main5.css" type="text/css"> </head><body></body>
这是非常难以阅读和一起工作,有没有办法将其带到正确的格式如:
<html>
<head>
<script type="text/javascript"> window.onload = runJcript('fixads()');
</script>
<link rel="stylesheet" href="http://wik253.googlecode.com/files/jquery.ui.all.css" type="text/css">
<link rel="stylesheet" href="http://wik253.googlecode.com/files/main5.css" type="text/css"> </head>
<body>
</body>
</html>
所以它更具可读性和可操作性。 他们是一个工具或在线脚本,可以帮助我做到这一点?
感谢, Praney
得到一个IDE,为你做到这一点,就像Aptana Studio的'CTRL + SHIFT + F' – Joseph 2012-02-18 22:29:36
一个快速的Google HTML格式化程序,只需要它... – 2012-02-18 22:30:51
@Joseph谢谢。 – praneybehl 2012-02-18 22:41:02