Так эту хню я вкурил шо надо типа еще
<?
function highlight_code($code) {
$code = strtr($code,array("<"=>"<",">"=>">","&"=>"&","$"=>"\$","""=>"\"","'"=>"'","\"=>"\\","%"=>"%","<br>"=>"\r\n","^"=>"^",":"=>":"));
$code=highlight_string($code,true);
$code=strtr($code,array("\r\n"=>"<br>","<br />"=>"<br>","\$"=>"$","'"=>"'","\\"=>"\","%"=>"%","^"=>"^",":"=>":")); //,""=>""
$code='<div class=d>'.$code.'</div>';
return $code;
}?>
ну а как сделать функцию [php] ??
Изменил: Дмитрий (07.07.2010 / 14:33)