]> granicus.if.org Git - php/commitdiff
Since we're highlighting code, put <code> and </code> around the code.
authorAndrei Zmievski <andrei@php.net>
Fri, 14 Jan 2000 19:35:29 +0000 (19:35 +0000)
committerAndrei Zmievski <andrei@php.net>
Fri, 14 Jan 2000 19:35:29 +0000 (19:35 +0000)
Zend/zend_highlight.c

index c68542c0d12fe84cb66481a34b9efadbd031bb24..c68b4cd91f39bed3d4d9f3200ae5da16f0e5ee24 100644 (file)
@@ -81,6 +81,7 @@ ZEND_API void zend_highlight(zend_syntax_highlighter_ini *syntax_highlighter_ini
        int in_string=0;
        CLS_FETCH();
 
+       zend_printf("<code>");
        zend_printf("<font color=\"%s\">\n", last_color);
        /* highlight stuff coming back from zendlex() */
        token.type = 0;
@@ -158,6 +159,7 @@ ZEND_API void zend_highlight(zend_syntax_highlighter_ini *syntax_highlighter_ini
                zend_printf("</font>\n");
        }
        zend_printf("</font>\n");
+       zend_printf("</code>");
 }
 
 /*