note 42124 added to function.highlight-string

From: Date: Tue, 04 May 2004 09:13:42 +0000
Subject: note 42124 added to function.highlight-string
Groups: php.notes 
Request: Send a blank email to php-notes+get-69190@lists.php.net to get a copy of this message
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> ---- Manual Page -- http://www.php.net/manual/en/function.highlight-string.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+42124 Delete -- http://master.php.net/manage/user-notes.php?action=delete+42124&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+42124&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#69190) next »