src/ThinkPHP/Library/Vendor/SmartTemplate/class.smarttemplatedebugger.php
function highlight_html ( $code )
		{
			$code  =  htmlentities($code);
			$code  =  preg_replace('/([a-zA-Z_]+)=/',  '<font color="#FF0000">$1=</font>',  $code);
			$code  =  preg_replace('/(&lt;[\/a-zA-Z0-9&;]+)/',  '<font color="#0000FF">$1</font>',  $code);
			$code  =  str_replace('&lt;!--',  '<font color="#008080">&lt;!--',  $code);
			$code  =  str_replace('--&gt;',  '--&gt;</font>',  $code);
			$code  =  preg_replace('/[\r\n]+/',  "\n",  $code);
			return $code;
		}
function highlight_html ( $code )
		{
			$code  =  htmlentities($code);
			$code  =  preg_replace('/([a-zA-Z_]+)=/',  '<font color="#FF0000">$1=</font>',  $code);
			$code  =  preg_replace('/(&lt;[\/a-zA-Z0-9&;]+)/',  '<font color="#0000FF">$1</font>',  $code);
			$code  =  str_replace('&lt;!--',  '<font color="#008080">&lt;!--',  $code);
			$code  =  str_replace('--&gt;',  '--&gt;</font>',  $code);
			$code  =  preg_replace('/[\r\n]+/',  "\n",  $code);
			return $code;
		}
function highlight_html ( $ code ) { $ code = htmlentities ( $ code ) ; $ code = preg_replace ( '/([a-zA-Z_]+)=/' , '<font color="#FF0000">$1=</font>' , $ code ) ; $ code = preg_replace ( '/(&lt;[\/a-zA-Z0-9&;]+)/' , '<font color="#0000FF">$1</font>' , $ code ) ; $ code = str_replace ( '&lt;!--' , '<font color="#008080">&lt;!--' , $ code ) ; $ code = str_replace ( '--&gt;' , '--&gt;</font>' , $ code ) ; $ code = preg_replace ( '/[\r\n]+/' , "\n" , $ code ) ; return $ code ; }
Highlight HTML Source

@param string $code HTML Source
@return string Hightlighte HTML Source
@access private
@desc Highlight HTML Source
Highlight HTML Source