Re: [PHP] How does the PHP website colorize the code snippets?

2007-11-15 Thread T . Lensselink
On Wed, 14 Nov 2007 23:45:40 -0800, Daevid Vincent [EMAIL PROTECTED] wrote: I want to put a code snippet section on my site and want to colorize them like the user comments on any PHP site page. http://www.php.net/manual/en/language.operators.arithmetic.php What's the easiest way to do

RE: [PHP] How does the PHP website colorize the code snippets?

2007-11-15 Thread Per Jessen
Daevid Vincent wrote: Worked pretty good. It seems to have trouble with the \ and \\ chars for some reason, but close enough for jazz as they say... (notice the array has \\ when it should only be a single one, What do you actually have in the code - a double (an escaped backslash) or a

RE: [PHP] How does the PHP website colorize the code snippets?

2007-11-15 Thread Daevid Vincent
-Original Message- From: T.Lensselink [mailto:[EMAIL PROTECTED] Sent: Thursday, November 15, 2007 12:05 AM On Wed, 14 Nov 2007 23:45:40 -0800, Daevid Vincent [EMAIL PROTECTED] wrote: I want to put a code snippet section on my site and want to colorize them like the user

RE: [PHP] How does the PHP website colorize the code snippets?

2007-11-15 Thread T . Lensselink
On Thu, 15 Nov 2007 03:40:32 -0800, Daevid Vincent [EMAIL PROTECTED] wrote: -Original Message- From: T.Lensselink [mailto:[EMAIL PROTECTED] Sent: Thursday, November 15, 2007 12:05 AM On Wed, 14 Nov 2007 23:45:40 -0800, Daevid Vincent [EMAIL PROTECTED] wrote: I want to put a code

RE: [PHP] How does the PHP website colorize the code snippets?

2007-11-15 Thread tedd
On Wed, 14 Nov 2007 23:45:40 -0800, Daevid Vincent [EMAIL PROTECTED] wrote: I want to put a code snippet section on my site and want to colorize them like the user comments on any PHP site page. Hi: It was suggested to use php's highlight_string -- I wouldn't do that. Why don't you use css

Re: [PHP] How does the PHP website colorize the code snippets?

2007-11-15 Thread Per Jessen
Daevid Vincent wrote: I want to put a code snippet section on my site and want to colorize them like the user comments on any PHP site page. http://www.php.net/manual/en/language.operators.arithmetic.php What's the easiest way to do that? php -s yourcode.php /Per Jessen, Zürich -- PHP