Page 1 of 1

highlight_string problem

Posted: Sat Sep 04, 2004 11:40 am
by zoonx

Code: Select all

$post = stripslashes($post);
   	$post = highlight_string($post,true);


 	$post =  str_replace('їphp]',"   <font size='2' color='#00004F'>PHP</font><br><div align=center><table border='1' style='border-collapse: collapse' bordercolor='d2e3ea' width=450 cellspacing=0 cellpadding=2 bordercolor=000000 bgcolor=#FCFDFE height='17' dir='ltr'><tr><td width=450 align=left height='13'><font   size='2'></div>",$post);
	$post = str_replace("ї/php]","</span></font></td></tr></table></center></div>",$post);
thist font not change

Code: Select all

<?php

$post = "<font face = 'Tahoma' size ='3'>$post</font>";

?>

Posted: Sat Sep 04, 2004 12:02 pm
by feyd
highlight_string returns the code inside a code block, last I checked.

Posted: Sat Sep 04, 2004 12:18 pm
by m3mn0n
Indeed it does.

[php_man]highlight_string[/php_man]()