Req #42447 [Opn->Wfx]: highlight_(string|file) does not need out most <span>
| From: | jani@php.net | Date: | Fri, 31 Dec 2010 19:42:49 +0000 |
| Subject: | Req #42447 [Opn->Wfx]: highlight_(string|file) does not need out most <span> | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-157418@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=42447&edit=1
ID: 42447
Updated by: jani@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