change request for function highlight_string
| From: | Rein Velt | Date: | Wed, 20 Feb 2002 22:13:13 +0000 |
| Subject: | change request for function highlight_string | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-85615@lists.php.net to get a copy of this message | ||
At this moment (php4.1.1) the function "highlight_string" has the following
syntax:
[quote]
bool highlight_string ( string str)
This function prints out a syntax highlighted version of str using the
colors defined in the built-in syntax highlighter for PHP. Returns TRUE or
FALSE.
[/quote]
The function will be more flexible if it returns a string (with highlights)
and nothing is printed directly.
str highlight_string ( string str)
This function returns a string containing a syntax highted version of str
using the colors defined in the built-in syntax highlighter for PHP. Returns
TRUE or FALSE.
Reference: http://lxr.php.net/source/ZendEngine2/zend_highlight.c#84
--
Rein Velt web application engineering
mailto:rein@velt.net
http://velt.net