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"> </td> </tr> <tr><!--header--> <td class="header"> </td> </tr> <tr><!--main--> <td class="main"> </td> </tr> <tr><!--bottom--><td class="bottom"> </td> </tr></table></body></html> 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"> </td> </tr> <tr><!--header--> <td class="header"> </td> </tr> <tr><!--main--> <td class="main"> </td> </tr> <tr><!--bottom--> <td class="bottom"> </td> </tr> </table> </body> </html> HTML:
Sounds like a pretty useful tool for me too. But unfortunately I don't know of one. I'd imagine it'd be somewhat difficult to build and have it work accurately.
Not really as all it would need to do is find the start and end tags and then sort it out from there If there is a table within a table it should recognize it and indent it further until the table is finished and so on for other tags... Lets build one...
Dreamweaver will convert it to css but Its going to have mistakes. Why not ditch the tables and go with CSS.
I've had good results with: http://infohound.net/tidy/ Which is a online wrapped version of tidy. I recommend setting the wrap to 70 instead of 90, and making sure indent attributes is off, and wrap attributes is on. Though I'm with the crowds - single column table? No reason to EVER do that.... well, unless you are aiming for vertical positioning of content inside a fixed height container.
I've always used the cleanup command in Dreamweaver. Not the best way, but it gets the job done for the most part.
find yourself a version of dreamweaver....your code might look like crap because you transfered it in the wrong mode. just open the file in dreamweaver and all will be right with the world