Several years ago I used to use a program called HTML Tidy. I haven't used it for ages, but it would be worth a look. Google tells me that it can now be found at http://tidy.sourceforge.net/
Richard Jordan
On Thu, Mar 08, 2007 at 07:16:13AM +0000, Richard Jordan wrote:
Several years ago I used to use a program called HTML Tidy. I haven't used it for ages, but it would be worth a look. Google tells me that it can now be found at http://tidy.sourceforge.net/
... and, much to my surprise, it's already installed on my Linux box as part of the KDE installation for some reason! :-)
Thanks!
On Thu, Mar 08, 2007 at 08:45:58AM +0000, Eur Ing Chris Green wrote:
On Thu, Mar 08, 2007 at 07:16:13AM +0000, Richard Jordan wrote:
Several years ago I used to use a program called HTML Tidy. I haven't used it for ages, but it would be worth a look. Google tells me that it can now be found at http://tidy.sourceforge.net/
... and, much to my surprise, it's already installed on my Linux box as part of the KDE installation for some reason! :-)
Thanks!
HOWEVER it's totally useless! All that 'tidy' does is to correct the HTML syntax, it doesn't beutify it at all. In fact it turns it into a total mess by removing *all* the indenting.
Grrrrr. Back to square one.
On Thu, Mar 08, 2007 at 09:55:28AM +0000, Eur Ing Chris Green wrote:
On Thu, Mar 08, 2007 at 08:45:58AM +0000, Eur Ing Chris Green wrote:
On Thu, Mar 08, 2007 at 07:16:13AM +0000, Richard Jordan wrote:
Several years ago I used to use a program called HTML Tidy. I haven't used it for ages, but it would be worth a look. Google tells me that it can now be found at http://tidy.sourceforge.net/
... and, much to my surprise, it's already installed on my Linux box as part of the KDE installation for some reason! :-)
Thanks!
HOWEVER it's totally useless! All that 'tidy' does is to correct the HTML syntax, it doesn't beutify it at all. In fact it turns it into a total mess by removing *all* the indenting.
Grrrrr. Back to square one.
... but no, I was too hasty! :-)
There is a -indent option to tidy which *does* prettify/beautify the code, so I'm happy again! I can now look at my template code with some sort of chance of understanding it.
HOWEVER it's totally useless! All that 'tidy' does is to correct the HTML syntax, it doesn't beutify it at all. In fact it turns it into a total mess by removing *all* the indenting.
Grrrrr. Back to square one.
Tidy doen't indent the code by default because the extra space at the start of the line supposedly affects the layout in some ancient browsers no-one uses any more.
If you want to turn indenting on, you need to pass it the -i option. Or enable it in your config file.
It honestly does work once you've got it configured properly.