Code:
	
	function xmlhighlight($code){
	$code=preg_replace("/(\<\;([a-zA-Z0-9\/]+))([\s\r\n]*)/iu","<span style=\"color: blue; font-weight: bold;\">\\1</span>\\3",$code);
	$code=preg_replace("/([\s\r\na-zA-Z0-9)]*)((\/|)\>\;)/iu","\\1<span style=\"color: blue; font-weight: bold;\">\\2</span>",$code);
	$code=preg_replace("/(<)([^<>><]+)([\s\r\n]+)([a-zA-Z0-9]+\=)([^<>><]+)(>)/isu","\\1\\2\\3<span style=\"color: green; text-weight: none;\">\\4</span>\\5\\6",$code);
	$code=codehighlight($code);
	return $code;
}
Der dritte Teil funktioniert allerdings nicht.
Bei den Codeeingaben wurde < und > schon durch < und > ersetzt. Wo liegt der Fehler?
          


)
							
						


Comment