Re: Auto-generating HTML

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.younger@xxxxxxxxx>

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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux