Everyday i look at code formated like that:
Code: Select all
<!-- IF S_USER_LOGGED_IN and S_ZEBRA -->
<!-- IF U_REMOVE_FRIEND -->
<dt> </dt> <dd class="zebra"><a href="{U_REMOVE_FRIEND}" data-ajax="zebra"><strong>{L_REMOVE_FRIEND}</strong></a></dd>
<!-- ELSEIF U_REMOVE_FOE -->
<dt> </dt> <dd class="zebra"><a href="{U_REMOVE_FOE}" data-ajax="zebra"><strong>{L_REMOVE_FOE}</strong></a></dd>
<!-- ELSE -->
<!-- IF U_ADD_FRIEND -->
<dt> </dt> <dd class="zebra"><a href="{U_ADD_FRIEND}" data-ajax="zebra"><strong>{L_ADD_FRIEND}</strong></a></dd>
<!-- ENDIF -->
<!-- IF U_ADD_FOE -->
<dt> </dt> <dd class="zebra"><a href="{U_ADD_FOE}" data-ajax="zebra"><strong>{L_ADD_FOE}</strong></a></dd>
<!-- ENDIF -->
<!-- ENDIF -->
<!-- ENDIF -->
Code: Select all
<!-- IF S_USER_LOGGED_IN and S_ZEBRA -->
<!-- IF U_REMOVE_FRIEND -->
<dt> </dt>
<dd class="zebra">
<a href="{U_REMOVE_FRIEND}" data-ajax="zebra">
<strong>{L_REMOVE_FRIEND}</strong></a>
</dd>
<!-- ELSEIF U_REMOVE_FOE -->
<dt> </dt>
<dd class="zebra">
<a href="{U_REMOVE_FOE}" data-ajax="zebra">
<strong>{L_REMOVE_FOE}</strong>
</a>
</dd>
<!-- ELSE -->
<!-- IF U_ADD_FRIEND -->
<dt> </dt>
<dd class="zebra">
<a href="{U_ADD_FRIEND}" data-ajax="zebra">
<strong>{L_ADD_FRIEND}</strong>
</a>
</dd>
<!-- ENDIF -->
<!-- IF U_ADD_FOE -->
<dt> </dt>
<dd class="zebra">
<a href="{U_ADD_FOE}" data-ajax="zebra">
<strong>{L_ADD_FOE}</strong>
</a>
</dd>
<!-- ENDIF -->
<!-- ENDIF -->
<!-- ENDIF -->
My question: do you really format all subsilver(or your custom) code manually?
Is any auto reformat tool for template syntax exists?
Hoping for the best
Thank you in advance for any answer