tidy php

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.

  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;

tidy php

Postby monster » Wed Oct 05, 2005 1:09 am

Hi Guys,

First - Id like to say WB2005 is an awesome program... Ive been a long time user of TopStyle for css/html and EmEditor for PHP stuff.

I can almost and say almost replace those 2 programs with WB2005 but not yet as it lacks some handy features that are in the others but its oh so close.

Once of have a good go at WB2005 ill report on things id like to see implemented, fixed etc as long as thats ok of course.

Keep up the good work guys your doing a top job.

Small problem - Does anyone have a solution to STOP tidy moving the php tags onto same lines as other php tags and html ie

id like to keep this structure
Code: Select all
<select name="page" onchange="submitform()">
  <?php foreach ($myPage as $page): ?>
  <?php if ($selected): ?>
  <option value="<?php echo $page['num']; ?>" selected="selected">
    Page: <?php echo $page['num']; ?> of <?php echo $totalPages; ?>
  </option>
  <?php else: ?>
  <option value="<?php echo $page['num']; ?>">
    Page: <?php echo $page['num']; ?> of <?php echo $totalPages; ?>
  </option>
  <?php endif; ?>
  <?php endforeach; ?>
</select>


however tidy does this and looks horrible -
Code: Select all
<select name="page" onchange="submitform()">
  <?php foreach ($myPage as $page): ?><?php if ($selected): ?>
  <option value="<?php echo $page['num']; ?>" selected="selected">
    Page: <?php echo $page['num']; ?> of <?php echo $totalPages; ?>
  </option><?php else: ?>
  <option value="<?php echo $page['num']; ?>">
    Page: <?php echo $page['num']; ?> of <?php echo $totalPages; ?>
  </option><?php endif; ?> <?php endforeach; ?>
</select>


If anyone has a solution that would be awesome.

Keep of the good works guys on WB2005 it will eventually dominate :)
monster
 
Posts: 1
Joined: Wed Oct 05, 2005 12:53 am

Postby mwb1100 » Wed Oct 05, 2005 7:23 am

If you turn off HTML Tidy's Pretty Print\markup option, your PHP will not be reformatted.
mwb1100
 
Posts: 72
Joined: Thu Jun 02, 2005 8:00 am


Return to HTMLPad / Rapid CSS / Rapid PHP / WeBuilder Support

Who is online

Users browsing this forum: No registered users and 46 guests

cron