Custom reformat rules?

Hello, im working with phpbb templates where i have a custom if-else model, like this:

<!-- IF S_FORUM_RULES -->
<div class="message">
<!-- IF U_FORUM_RULES -->
<h3>{L_FORUM_RULES}</h3><br/>
<a href="{U_FORUM_RULES}"><b>{L_FORUM_RULES_LINK}</b></a>
<!-- ELSE -->
<h3>{L_FORUM_RULES}</h3><br/>
{FORUM_RULES}
<!-- ENDIF -->
</div>
<!-- ENDIF -->

So i want to auto Reformat code to this style:

<!-- IF S_FORUM_RULES -->
<div class="message">
<!-- IF U_FORUM_RULES -->
<h3>{L_FORUM_RULES}</h3><br/>
<a href="{U_FORUM_RULES}"><b>{L_FORUM_RULES_LINK}</b></a>
<!-- ELSE -->
<h3>{L_FORUM_RULES}</h3><br/>
{FORUM_RULES}
<!-- ENDIF -->
</div>
<!-- ENDIF -->



Where i can found settings or plugin for my purposes?

Please sign in to leave a comment.