|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-10-21 21:49 UTC] jdentel91 at comcast dot net
Description: ------------ I tried to use highlight_file() to highlight a file that includes a lot of str_replace(). It has place many of them into one, with two of the first value, the second value is only one, and the third is the same for them all. This disrupts the displaying of the code. Reproduce code: --------------- http://www.chaoticscripters.com/class.php Expected result: ---------------- The code above is the problem. It is displaying the file with 129 lines of $txt = str_replace('a', '&a;', $text); about half of them placed together so it has 2 lines in one. Actual result: -------------- Look at the URL for the result. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 12:00:02 2025 UTC |
It depends on the ability of your browser do display those characters correctly. Opera, for example, displays "?" ("pound") as pound, not as "£". This is because highligh_file() doesn't touch those characters and it was never meant to. No bug here.