You are here: Re: highlight_file() strange line breaks « PHP Programming Language « IT news, forums, messages
Re: highlight_file() strange line breaks

Posted by thib´ on 01/13/08 06:09

Rik Wasmus wrote:
> That's not what I meant, I mean: the file that PHP actually is parsing
> to generate it's output, are you sure that isn't the cause of this mess?

Oh, okay; well..
...I think you got it.

I configured my editor for it to put CR and LF as line break; I now updated
the file with just LFs and I got exactly four lines:
<code>
<span.. (source..)
</span>
</code>

=P.
So, I guess PHP removes all LFs but not CRs, then put the resulting source
between <code>\n<span.. and \n</span>\n</code>

Of course it's still kinda messed up, but there's less weirdness in all of
it. Thanks for your help finding this out ;).

-thib´

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация