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

Posted by Rik Wasmus on 01/13/08 02:23

On Sun, 13 Jan 2008 03:18:36 +0100, thib´ <thyb0@coralsnake-team.com>
wrote:
> Taking a closer look to highlight_file() lastly, I found out that its
> line break policy was a bit.. strange.

> Here, the line break is obviously a LF (Line Feed, or \n).

> Here, it's a CR (Carriage Return, or \r).


> Firefox seems to render the source correctly (in its source window), and
> of course, as it's XHTML formatted with <br /> tags for line breaks, the
> final render is fine. I know it's intended to be displayed in a browser
> and thus there's no real problem with it, but I was just wondering
> (like, for 'educational' purpose ^^').. is that really a mess of things
> or is there an actual reason for this?

Hmm, it would be very strange indeed, however, I don't think the function
has ever been regarded as very important by ayone :P. Just out of
curiousity: have you compared this to existing linebreaks in the document
highlighted itself?
--
Rik Wasmus

 

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

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