Edit report at http://bugs.php.net/bug.php?id=42447&edit=1
ID: 42447 Updated by: j...@php.net Reported by: geoffers at gmail dot com Summary: highlight_(string|file) does not need out most <span> -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: ------------------------------------------------------------------------ [2007-08-27 15:59:15] geoffers at gmail dot com Description: ------------ The code highlight functions always output a surrounding <span> element to make all the content black. This is not needed. <code style="color:#000"> can be used instead. Reproduce code: --------------- <?php highlight_string('$foo'); Expected result: ---------------- <code><span style="color: #000000"> $foo</span> </code> Actual result: -------------- &t;code style="color: #000000"> $foo </code> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=42447&edit=1