Click to See Complete Forum and Search --> : Is there such a program


oo7ml
07-12-2007, 10:29 AM
Is there such a program that will organize your code

Say my code is a complete mess like this

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>----- Template -----</title><link rel=stylesheet href=stylesheet.css type=text/css>
</head>

<body>
<table width="760" border="0" cellspacing="0" cellpadding="0" align="center">
<tr><!--top--> <td class="top">&nbsp;
</td> </tr>
<tr><!--header-->
<td class="header">&nbsp;
</td>
</tr>
<tr><!--main-->
<td class="main">&nbsp;
</td>
</tr> <tr><!--bottom--><td class="bottom">&nbsp;
</td>
</tr></table></body></html>


Is there such a program that would organize it into something similar below


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="imagetoolbar" content="no">
<title>----- Template -----</title>
<link rel=stylesheet href=stylesheet.css type=text/css>
</head>

<body>

<table width="760" border="0" cellspacing="0" cellpadding="0" align="center">

<tr><!--top-->
<td class="top">&nbsp;



</td>
</tr>


<tr><!--header-->
<td class="header">&nbsp;



</td>
</tr>


<tr><!--main-->
<td class="main">&nbsp;



</td>
</tr>


<tr><!--bottom-->
<td class="bottom">&nbsp;



</td>
</tr>

</table>


</body>
</html>

drhowarddrfine
07-12-2007, 10:49 AM
HTML-Tidy.

WebJoel
07-12-2007, 12:09 PM
Yes, -"HTML-Tidy". Luv it long time! :D Either the 'stand alone' version that runs of itself, or the extention that works from within Firefox the browser.

Also, "ACE-HTML Validator" will 'clean-up'/repair coding errors. I prefer using TIDY before the W3C-site to get the worst-of-the-worst cleaned up as W3C-Validator is a bit terse and cryptic with it's repair explainations (i.e., -if you are smart enough to understand what it is saying is incorrect, likely you weren't the one that wrote the bad code that you just checked in the first place..)

ray326
07-12-2007, 10:49 PM
Also many HTML editors like HTML-kit will reformat your code, often using HTML Tidy.