note 77914 added to function.highlight-string
| From: | phpnotes dot 20 dot zsh at spamgourmet dot com | Date: | Wed, 19 Sep 2007 15:05:44 +0000 |
| Subject: | note 77914 added to function.highlight-string | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-130600@lists.php.net to get a copy of this message | ||
peter at int8 dot com > "This hasn't been mentioned, but it appears that PHP opening
and closing tags are required to be part of the code snippet."
It does also require enabled open/close tags. For example:
<?php
highlight_string('<? echo "Hello world!";?>');
?>
Won't work with short_open_tag = Off. Compare example 10.2 on:
Main mirror (http://www.php.net/manual/en/language.basic-syntax.php#id2530407)
US mirror (http://us.php.net/manual/en/language.basic-syntax.php#id2530407)
IN mirror (http://in.php.net/manual/en/language.basic-syntax.php#id2530407)
----
Server IP: 217.13.201.10
Probable Submitter: 85.180.242.247
----
Manual Page -- http://www.php.net/manual/en/function.highlight-string.php
Edit -- https://master.php.net/note/edit/77914
Del: integrated -- https://master.php.net/note/delete/77914/integrated
Del: useless -- https://master.php.net/note/delete/77914/useless
Del: bad code -- https://master.php.net/note/delete/77914/bad+code
Del: spam -- https://master.php.net/note/delete/77914/spam
Del: non-english -- https://master.php.net/note/delete/77914/non-english
Del: in docs -- https://master.php.net/note/delete/77914/in+docs
Del: other reasons-- https://master.php.net/note/delete/77914
Reject -- https://master.php.net/note/reject/77914
Search -- https://master.php.net/manage/user-notes.php