note 73624 added to function.highlight-string
| From: | Pyerre at osu1 dot php dot net | Date: | Sun, 04 Mar 2007 21:29:47 +0000 |
| Subject: | note 73624 added to function.highlight-string | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-124070@lists.php.net to get a copy of this message | ||
This fonction replaces every space with the html code (non-breaking space)
this is not very good because text will not go to the line and causes a big width
for example in a bordered div, text will go across the border
my solution :
echo str_replace(" ", " ",highlight_string("Arise, you children of
the fatherland",true));
echo str_replace(" ", " ",highlight_file("test.php",true));
----
Server IP: 217.174.196.197
Probable Submitter: 83.204.119.237
----
Manual Page -- http://www.php.net/manual/en/function.highlight-string.php
Edit -- https://master.php.net/note/edit/73624
Del: integrated -- https://master.php.net/note/delete/73624/integrated
Del: useless -- https://master.php.net/note/delete/73624/useless
Del: bad code -- https://master.php.net/note/delete/73624/bad+code
Del: spam -- https://master.php.net/note/delete/73624/spam
Del: non-english -- https://master.php.net/note/delete/73624/non-english
Del: in docs -- https://master.php.net/note/delete/73624/in+docs
Del: other reasons-- https://master.php.net/note/delete/73624
Reject -- https://master.php.net/note/reject/73624
Search -- https://master.php.net/manage/user-notes.php