Word Wrap on highlight_file
| From: | Tom Chubb | Date: | Wed, 16 Jan 2008 13:01:54 +0000 |
| Subject: | Word Wrap on highlight_file | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-267380@lists.php.net to get a copy of this message | ||
Can anyone tell me how to wrap the results of highlight_file so it
doesn't mess up the size of my table div?
I tried the following and doesn't work!
if ($ext == "phps") {
$showcode = highlight_file($pathtoscripts . $_GET['file']);
echo wordwrap($showcode, 70);
} else {
echo "Nice try, but you are not authorised to view the source of
files with a $ext extension! ;)\n";
}
Thanks,
Tom