ou loars j'ai trouvé mieux plutà´t que de faire ça :
<?php
function xhtml_highlight($str) {
$str = highlight_string($str, true);
//replace <code><font color=""></font></code>
$str = preg_replace('#<font color="([^\']*)">([^\']*)</font>#', '<span style="color: \\1">\\2</span>', $str);
//replace other <font> elements
return preg_replace('#<font color="([^\']*)">([^\']*)</font>#U', '<span style="color: \\1">\\2</span>', $str);
}
?>
ca deonnerai simplement :
remplacer
function fscode_php($texte)
{
global $langue, $theme;
return sprintf($theme['fscode_php'], '90%', $langue['php'], $texte);
}
par
function fscode_php($texte)
{
global $langue, $theme;
$texte = preg_replace('#<font color="([^\']*)">([^\']*)</font>#', '<span style="color: \\1">\\2</span>', $texte);
return sprintf($theme['fscode_php'], '90%', $langue['php'], $texte);
}
bonne idée Génova
