Hi ..
I Think you got it wrong.
I have asked for an utility and not the script to do it..

Please read sauoq's answer before sending any replies.. He was spot on.. Thanks for your answer man!!!
It really worked....

This is wat i tried...
created tidy.conf with contents...

new-empty-tags: tmpl_var,tmpl_if,tmpl_else,tmpl_loop
This will now work for templates...

To summarise everything..

Download the tgz file for tidy from sourceforge. start using it Read the man page of tidy from sourceforge site for your reference http://tidy.sourceforge.net/docs/tidy_man.html
People who use perltidy can understand this also.. Try do lot of learning on this..

Thank u

A perl Script without 'strict' is like a House without Roof; Both are not Safe;

In reply to Re^2: Question on Html Tidy by vishi83
in thread Question on Html Tidy by vishi83

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":