#42446 [Opn]: highlight_(string|file) should use <var>
| From: | kalle@php.net | Date: | Mon, 25 Aug 2008 00:46:30 +0000 |
| Subject: | #42446 [Opn]: highlight_(string|file) should use <var> | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-128371@lists.php.net to get a copy of this message | ||
ID: 42446
Updated by: kalle@php.net
Reported By: geoffers at gmail dot com
Status: Open
Bug Type: Feature/Change Request
Operating System: Mac OS 10.4.10
PHP Version: 5.2.3
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[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/?id=42446&edit=1