[PHP] Re: show_source or highlight_string wrapping
Aidan Lister wrote: Why do these functions wrap at approximately 80 chars? It's stupid! How can this be worked around? It doesn't check the source to see that the browser wraps the text as it reaches the border of the window. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: show_source or highlight_string wrapping
Red Wingate wrote: Aidan Lister wrote: Why do these functions wrap at approximately 80 chars? It's stupid! How can this be worked around? It doesn't check the source to see that the browser wraps the text as it reaches the border of the window. Oh just another note, use nobr to skip this limitation :-) nobr ?php hightlight_file ( '...' ); ? /nobr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: show_source or highlight_string wrapping
No, PHP explicity inserts br at 80chars Red Wingate [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Red Wingate wrote: Aidan Lister wrote: Why do these functions wrap at approximately 80 chars? It's stupid! How can this be worked around? It doesn't check the source to see that the browser wraps the text as it reaches the border of the window. Oh just another note, use nobr to skip this limitation :-) nobr ?php hightlight_file ( '...' ); ? /nobr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: show_source or highlight_string wrapping
I just build a testcase to check wether PHP does or not and it doesn't even if i have 1080 chars in a line :p -- red No, PHP explicity inserts br at 80chars Red Wingate [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Red Wingate wrote: Aidan Lister wrote: Why do these functions wrap at approximately 80 chars? It's stupid! How can this be worked around? It doesn't check the source to see that the browser wraps the text as it reaches the border of the window. Oh just another note, use nobr to skip this limitation :-) nobr ?php hightlight_file ( '...' ); ? /nobr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: show_source or highlight_string wrapping
It seems they've fixed this in php5, so I can't complain. Aidan Lister [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Why do these functions wrap at approximately 80 chars? It's stupid! How can this be worked around? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: show_source or highlight_string wrapping
Here's a PHP4 example: http://ircphp.com/users/imho/?file=function.str_chop.php Here's an example where PHP has explicitly wrapped at 80 chars, but only the PHP, not the HTML. http://ircphp.com/users/imho/ Red Wingate [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I just build a testcase to check wether PHP does or not and it doesn't even if i have 1080 chars in a line :p -- red No, PHP explicity inserts br at 80chars Red Wingate [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Red Wingate wrote: Aidan Lister wrote: Why do these functions wrap at approximately 80 chars? It's stupid! How can this be worked around? It doesn't check the source to see that the browser wraps the text as it reaches the border of the window. Oh just another note, use nobr to skip this limitation :-) nobr ?php hightlight_file ( '...' ); ? /nobr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: show_source or highlight_string wrapping
Maybe you take a look at the source as there ARE NO linebreaks in any wrong places. I know the source produced by PHP's Source functions is a mess but take yourself a while and you will see there are no linebreaks at all :p -- red Aidan Lister wrote: Here's a PHP4 example: http://ircphp.com/users/imho/?file=function.str_chop.php Here's an example where PHP has explicitly wrapped at 80 chars, but only the PHP, not the HTML. http://ircphp.com/users/imho/ Red Wingate [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I just build a testcase to check wether PHP does or not and it doesn't even if i have 1080 chars in a line :p -- red No, PHP explicity inserts br at 80chars Red Wingate [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Red Wingate wrote: Aidan Lister wrote: Why do these functions wrap at approximately 80 chars? It's stupid! How can this be worked around? It doesn't check the source to see that the browser wraps the text as it reaches the border of the window. Oh just another note, use nobr to skip this limitation :-) nobr ?php hightlight_file ( '...' ); ? /nobr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php