Re: How does the PHP website colorize the code snippets?
| From: | T . Lensselink | Date: | Thu, 15 Nov 2007 08:05:02 +0000 |
| Subject: | Re: How does the PHP website colorize the code snippets? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-264550@lists.php.net to get a copy of this message | ||
On Wed, 14 Nov 2007 23:45:40 -0800, "Daevid Vincent" <daevid@daevid.com>
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?
>
> I've used Geshi, but that seems a lot of overhead just to colorize a wee
> bit-o-PHP code.
>
> http://daevid.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
Take a look at highlight_string or highlight_file.
http://nl3.php.net/manual/en/function.highlight-string.php
http://nl3.php.net/manual/en/function.highlight-file.php