cvs: ZendEngine2 / zend_highlight.c
| From: | Derick Rethans | Date: | Wed, 25 Feb 2004 14:14:47 +0000 |
| Subject: | cvs: ZendEngine2 / zend_highlight.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-2407@lists.php.net to get a copy of this message | ||
derick Wed Feb 25 09:14:47 2004 EDT
Modified files:
/ZendEngine2 zend_highlight.c
Log:
- Use <span> instead of <font> in highlight_string(). (Patch by mg@iceni.pl)
http://cvs.php.net/diff.php/ZendEngine2/zend_highlight.c?r1=1.42&r2=1.43&ty=u
Index: ZendEngine2/zend_highlight.c
diff -u ZendEngine2/zend_highlight.c:1.42 ZendEngine2/zend_highlight.c:1.43
--- ZendEngine2/zend_highlight.c:1.42 Thu Jan 8 12:31:47 2004
+++ ZendEngine2/zend_highlight.c Wed Feb 25 09:14:47 2004
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_highlight.c,v 1.42 2004/01/08 17:31:47 sniper Exp $ */
+/* $Id: zend_highlight.c,v 1.43 2004/02/25 14:14:47 derick Exp $ */
#include "zend.h"
#include "zend_language_parser.h"
@@ -105,7 +105,7 @@
int in_string=0;
zend_printf("<code>");
- zend_printf("<font color=\"%s\">\n", last_color);
+ zend_printf("<span style=\"color: %s\">\n", last_color);
/* highlight stuff coming back from zendlex() */
token.type = 0;
while ((token_type=lex_scan(&token TSRMLS_CC))) {
@@ -149,11 +149,11 @@
if (last_color != next_color) {
if (last_color != syntax_highlighter_ini->highlight_html) {
- zend_printf("</font>");
+ zend_printf("</span>");
}
last_color = next_color;
if (last_color != syntax_highlighter_ini->highlight_html) {
- zend_printf("<font color=\"%s\">", last_color);
+ zend_printf("<span style=\"color: %s\">", last_color);
}
}
switch (token_type) {
@@ -184,9 +184,9 @@
token.type = 0;
}
if (last_color != syntax_highlighter_ini->highlight_html) {
- zend_printf("</font>\n");
+ zend_printf("</span>\n");
}
- zend_printf("</font>\n");
+ zend_printf("</span>\n");
zend_printf("</code>");
}