highlight_string problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
zoonx
Forum Newbie
Posts: 1
Joined: Sat Sep 04, 2004 11:36 am

highlight_string problem

Post 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>";

?>
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

highlight_string returns the code inside a code block, last I checked.
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

Indeed it does.

[php_man]highlight_string[/php_man]()
Post Reply