One solution I can think of is:
$showCode = highlight_file($fileWithPath, true);
echo str_replace('', "\n", $showCode);
It may not be the best one. But it's not recommanded to use
echo wordwrap($showCode, 70);
Because you may break into something like
Regards,
Shelley
-
Tom Chubb schreef:
On 16/01/2008, Jochem Maas <[EMAIL PROTECTED]> wrote:
Tom Chubb schreef:
...
Jochem,
Thanks for that. So presumably it's not possible to do it in PHP?
there probably is but I can't tell what the problem is exactly without
seeing the output source and rendering, that
On 16/01/2008, Jochem Maas <[EMAIL PROTECTED]> wrote:
> Tom Chubb schreef:
> > Can anyone tell me how to wrap the results of highlight_file so it
> > doesn't mess up the size of my table div?
>
> use CSS to control the visual display in the browser.
> not to mention that 'table div' doesn't make mu
Tom Chubb schreef:
Can anyone tell me how to wrap the results of highlight_file so it
doesn't mess up the size of my table div?
use CSS to control the visual display in the browser.
not to mention that 'table div' doesn't make much sense as a concept.
probably you'll want to do something with
4 matches
Mail list logo