note 27126 deleted from function.highlight-string by didou

From: Date: Sat, 16 Aug 2003 23:47:05 +0000
Subject: note 27126 deleted from function.highlight-string by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-54514@lists.php.net to get a copy of this message
Note Submitter: ---- PHP's highlight functions seem to have problem highlighting \n newlines. I have oftern seen syntax errors being produced by these funstions. (Resulting in buggy code being posted on the net as a result.) Try highlighing the following and you will see what I mean. <?php $str = preg_replace(\"/(\r\n|\n|\r)/\", \"\n\", $str); $str = preg_replace(\"/\n\n+/\", \"\n\n\", $str); ?>

« previous php.notes (#54514) next »