note 42124 deleted from function.highlight-string by nlopess

From: Date: Tue, 04 May 2004 13:27:56 +0000
Subject: note 42124 deleted from function.highlight-string by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-69203@lists.php.net to get a copy of this message
Note Submitter: Daniellehr@gmx.de ---- highlight_string not in the old deprecated <font>-Tag? Easy: <?php $text = '<?php echo "Hello World"; ?>'; $text = highlight_string($text, true); $text = str_replace('<font color="', '<span style="color: ', str_replace('</font>', '</span>', $text)); ?> Now instead of <font color="#000000">SAMPLE_TEXT</font> there is a <span style="color: #000000">SAMPLE_TEXT</span> Yours, Daniel Lehr aka LLCoolDannY <http://www.llcooldanny.de.vu>

« previous php.notes (#69203) next »