I have html code that looks all mashed up like:
<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>
It is very hard to read and work with, Is there a way to bring it to proper format like:
<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>
So its more readable and workable.
Is their a tool or an online script that can help me do that?
Thanks,
Praney
If you are using a text editor which is written for coding it is common that the editor has a function for cleaning up the indentation. In Kate you find the function under Tools > Clean Indentation.
If you are generating HTML you could take a look at HTML Tidy: http://tidy.sourceforge.net/