Huhu Andavos
Und bei den Usercommand finde ich leider keine passende Antwort :(
ich schon ;-)
// as usual: $matches[0] is the complete match
// $matches[1] the match for the first subpattern
// enclosed in '(...)' and so on
Hast nicht evt. noch einen Tipp auf lager?
Also folgendes sollte als Callback-Funktion funktionieren:
function php_code($para)
{
$s = highlight_string($para[1], 1);
return $s;
}
Da funktioniert der Vorschlag von Andreas natürlich genauso gut.
Eine eigene Callback-Funktion ist hier also ggf. überflüssig.
Viele Grüße
lulu
--
bythewaythewebsuxgoofflineandenjoytheday
bythewaythewebsuxgoofflineandenjoytheday