Index: html_syntax.php =================================================================== RCS file: /repository/phpdoc/scripts/html_syntax.php,v retrieving revision 1.11 diff -u -r1.11 html_syntax.php --- html_syntax.php 3 Feb 2007 19:42:43 -0000 1.11 +++ html_syntax.php 3 Feb 2007 22:56:01 -0000 @@ -39,8 +39,11 @@ } } +function callback_highlight_xml_indent($match) { + return strtr($match[0], array(' ' => ' ', "\t" => '    ')); +} function callback_highlight_xml($matches) { - $source = htmlentities($matches[1]); + $source = trim(htmlentities($matches[1])); $match = array( '/(\w+)=("|"|\')(.*?)("|"|\')/', @@ -58,13 +61,15 @@ '!DOCTYPE $1 $2 $3$4$3', '<$1', '</$1>', - '