Daniel: code

Beitrag lesen

Hi,

global $_settings;

$text = htmlentities($text);
$text = nl2br($text);

if(preg_match_all("/[code]([\d\D]*)[/code]/U",$text,$treffer))
{
  foreach($treffer[1] as $key => $value)
  {
   $value = str_replace("<br />","",$value);
   $value = html_entity_decode($value);
   $value = highlight_put_linenum(highlight_string($value,true),true,true);
   $text = str_replace($treffer[0][$key],$value,$text);
  }
}

und wo/wie schreibst du den php code in $text???