Req #42446 [Opn->Wfx]: highlight_(string|file) should use <var>

From: Date: Fri, 31 Dec 2010 19:42:53 +0000
Subject: Req #42446 [Opn->Wfx]: highlight_(string|file) should use <var>
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-157419@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=42446&edit=1 ID: 42446 Updated by: jani@php.net Reported by: geoffers at gmail dot com Summary: highlight_(string|file) should use <var> -Status: Open +Status: Wont fix Type: Feature/Change Request -Package: Feature/Change Request +Package: *General Issues Operating System: Mac OS 10.4.10 PHP Version: 5.2.3 Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2008-08-25 14:58:30] geoffers at gmail dot com It should certainly apply to the curly dollar syntax too before this bug is fixed, though. ------------------------------------------------------------------------ [2008-08-25 00:46:29] kalle@php.net The following patch should add <var> to all variables, this does not apply to the curly dollar syntax (${'var'}). Patch: http://www.phpfi.com/346971 ------------------------------------------------------------------------ [2007-08-27 15:56:40] geoffers at gmail dot com Description: ------------ The code highlight functions should use <var> for variables in the highlighted code. Reproduce code: --------------- <?php highlight_string('$foo'); Expected result: ---------------- <code><span style="color: #000000"> <var>$foo</var></span> </code> Actual result: -------------- <code><span style="color: #000000"> $foo</span> </code> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=42446&edit=1

« previous php.bugs (#157419) next »