Re: [PHP3] Printing highlighted PHP syntax
| From: | (Richard Lynch) | Date: | Fri, 30 Jun 2000 19:45:23 +0000 |
| Subject: | Re: [PHP3] Printing highlighted PHP syntax | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-4124@lists.php.net to get a copy of this message | ||
In article <001101bfdad5$63fbd180$b23f20cf@foobar>,
tyler.longren@midiowa.net ("Tyler Longren") wrote:
> I've asked a question similar to this before on this list. But how do I =
> print "pretty php" onto a webpage without using the .phps extension or =
> by show_source("file.php"); ? I have some PHP code in a MySQL database =
> that needs to be displayed onto a webpage and it needs to be pretty. =
> Does anybody know how to do this?
You could probably alter the source of PHP by looking at show_source() and
finding a way to use a string instead, with a different function that's
the same body except for the opening the file part...
--
Richard Lynch | If this was worth $$$ to you, buy a CD
US Customer Support Director | from one of the artists listed here:
Zend Technologies USA | http://www.L-I-E.com/artists.htm
http://www.zend.com | (this has nothing to do with Zend,
duh!)