Re: show_source or highlight_string wrapping
| From: | Aidan Lister | Date: | Tue, 20 Apr 2004 12:52:44 +0000 |
| Subject: | Re: show_source or highlight_string wrapping | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-183968@lists.php.net to get a copy of this message | ||
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" <redeye@erisx.de> wrote in message
news:20040420124606.37195.qmail@pb1.pair.com...
> 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" <redeye@erisx.de> wrote in message
> > news:20040420070254.70174.qmail@pb1.pair.com...
> >> 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>