Well, it took about 5 min - checking the PHP site for "display" and then
for "source".
That lead to the display_source() function, an alias for highlight_file(),
which itself had a link for highlight_string(). These functions display PHP
source with syntax highlighting.
It is a fine manual; please Read The Fine Manual.
Side note: Use of other's code, such as Exponent CMS, does not absolve one
of the responsibility to understand the language, nor of the need to
wrestle with these things on one's own. Did you know there was a whole
thread within the last week on this v. issue?
Regards - Miles Thompson
At 06:49 AM 8/5/2005, Gregory Machin wrote:
HI
Please advise.
I'm using exponent cms and I creating a technical site,
I want to display code examples , how do I do this and with syntax
highlighting,
--
Gregory Machin
greg@xxxxxxxxxxxxxx
gregory.machin@xxxxxxxxx
www.linuxpro.co.za
Web Hosting Solutions
Scalable Linux Solutions
www.iberry.info (support and admin)
www.goeducation (support and admin)
+27 72 524 8096
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php