Re: diplaying code in pages and forums ??
| From: | Miles Thompson | Date: | Fri, 05 Aug 2005 11:54:12 +0000 |
| Subject: | Re: diplaying code in pages and forums ?? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-220061@lists.php.net to get a copy of this message | ||
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@linuxpro.co.za gregory.machin@gmail.com 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