#26848 [Opn->WFx]: Make highlight functions XHTML 1.0 Strict compliant
| From: | moriyoshi@php.net | Date: | Sat, 10 Jan 2004 15:21:02 +0000 |
| Subject: | #26848 [Opn->WFx]: Make highlight functions XHTML 1.0 Strict compliant | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-53056@lists.php.net to get a copy of this message | ||
ID: 26848
Updated by: moriyoshi@php.net
Reported By: phpman at fosketts dot co dot uk
-Status: Open
+Status: Wont fix
Bug Type: Feature/Change Request
Operating System: Win XP
PHP Version: 4.3.4
New Comment:
We'll do so when standard compliance really matters.
(IIRC, the current output is valid XHTML 1.0
transitional.)
Previous Comments:
------------------------------------------------------------------------
[2004-01-08 14:49:15] phpman at fosketts dot co dot uk
Description:
------------
Will the highlight functions (highlight_string() and highlight_file())
be modified to produce valid XHTML 1.0 Strict output? This has already
been done in other functions, e.g. nl2br(). A simple solution would be
to edit zend_highlight.c as follows:
1) Replace <font color=\"%s\"> with <span style=\"color: %s\"> on
lines
106 and 155
2) Replace </font> with </span> on lines 151, 191 and 193
Thanks
Sean :)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26848&edit=1