Bug #15650 Updated: function highlight_string() returns string

From: Date: Wed, 20 Feb 2002 23:04:35 +0000
Subject: Bug #15650 Updated: function highlight_string() returns string
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-691@lists.php.net to get a copy of this message
ID: 15650 Updated by: cynic@php.net Reported By: rein@velt.net -Status: Open +Status: Closed Bug Type: Feature/Change Request PHP Version: 4.1.1 New Comment: ob_start(); highlight_string($str); $ob = ob_get_contents(); ob_end_clean(); wrap this in a function. Previous Comments: ------------------------------------------------------------------------ [2002-02-20 17:57:54] rein@velt.net 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. Returnes a string with syntax-highlighted html Reference: http://lxr.php.net/source/ZendEngine2/zend_highlight.c#84 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=15650&edit=1

« previous php.bugs (#691) next »