On Sep 20, 2010, at 2:56 PM, Andy McKenzie wrote:

> Hey folks,
>  Here's the problem.  I'm writing a lot of pages, and I hate going in
> and out of PHP.  At the same time, I want my HTML to be legible.  When
> you look at it, that's kind of a problem, though... for instance
> (assume this had some PHP in the middle, and there was actually a
> reason not to just put this in HTML in the first place):

Unless you are looking at the HTML alot, you can just paste the source into an 
editor which can auto-format the code, or look at the code in firebug (that is 
the usual place where I look at my HTML.)

If there is a specific place you want to look at in the html, just change the 
lines there to look like this:
echo '<html>
but this will make your PHP quite messy if you do it alot.

I would go with templating, as many here suggested. 

Simcha Younger <simcha.youn...@gmail.com>

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to