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...
This will now work for templates...new-empty-tags: tmpl_var,tmpl_if,tmpl_else,tmpl_loop
To summarise everything..
People who use perltidy can understand this also.. Try do lot of learning on this..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
<code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>