|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2007-08-27 15:56 UTC] 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>
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 02 03:00:02 2025 UTC |
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