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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 14 Nov 2007 23:45:40 -0800, "Daevid Vincent" <daevid@xxxxxxxxxx>
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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux