Home Download Buy Blog Forum Support

reindent problems

reindent problems

Postby raptor235 on Thu May 10, 2012 12:47 pm

Hi everyone, I'm having issues with realingment command when using php / html mixed for example when I have the following block

Code: Select all
   <?php if (is_user_logged_in()): ?>
      <a href="/submit" class='btn-large btn-warning' id='button_submit_entry'> <i class='icon-white icon-plus'></i>Submit Contest Entry</a>
   <?php else: ?>
      <a href="#need_login" class='btn-large btn-warning' id='button_submit_entry' data-toggle="modal" > <i class='icon-white icon-plus'></i>Submit Contest Entry</a>
   <?php endif ?>


and run the reindent command on the entire doc

Code: Select all
   <?php if (is_user_logged_in()): ?>
   <a href="/submit" class='btn-large btn-warning' id='button_submit_entry'> <i class='icon-white icon-plus'></i>Submit Contest Entry</a>
<?php else: ?>
   <a href="#need_login" class='btn-large btn-warning' id='button_submit_entry' data-toggle="modal" > <i class='icon-white icon-plus'></i>Submit Contest Entry</a>
<?php endif ?>


anyone got any ideas what can be done?
raptor235
 
Posts: 36
Joined: Mon Jan 16, 2012 7:13 pm

Return to Technical Support

Who is online

Users browsing this forum: No registered users and 27 guests