Word Wrap on highlight_file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux