p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

beginning_php thread: highlight_file() or highlight_string()


Message #1 by "Jamal" <new_mojam@y...> on Thu, 24 Oct 2002 06:00:50
Hi
can anyone show me how to use this function in php.
I am trying to work on having my codes colored in php.
How do i accomplish this??
Jamal
Message #2 by "Jamal" <new_mojam@y...> on Thu, 24 Oct 2002 06:01:23
Hi
can anyone show me how to use this function "highlight_file() or 
highlight_string()" in php.
I am trying to work on having my codes colored in php.
How do i accomplish this??
Jamal
Message #3 by "Nikolai Devereaux" <yomama@u...> on Wed, 23 Oct 2002 22:01:15 -0700
Here's an example:

<?php
// how to use highlight_file()

echo highlight_file($_SERVER['PHP_SELF'], true);

?>


  Return to Index