Re: Manual nomenclature
| From: | Hannes Magnusson | Date: | Thu, 26 Feb 2015 17:41:04 +0000 |
| Subject: | Re: Manual nomenclature | ||
| References: | 1 2 3 | Groups: | php.doc php.webmaster |
| Request: | Send a blank email to php-webmaster+get-20773@lists.php.net to get a copy of this message | ||
Thats not what he is asking.
He is asking what the colors in the prototype mean.
mixed strpos ( string $haystack , mixed $needle [, int $offset = 0 ] )
on the website, the types are green in the proto, the initializer
(including the = sign) are purple/pink etc etc.
This prototype has more, and different, colors then highlight_string()
offers btw - but again, he isn't complaining about the
highlight_string() docs - just asking what the colors in the proto
mean.
We document the proto on http://php.net/about.prototypes - but don't
say anything about the coloring.
-Hannes
On Thu, Feb 26, 2015 at 2:09 AM, Maciek Sokolewicz
<maciek.sokolewicz@gmail.com> wrote:
> On 25-2-2015 20:38, Hannes Magnusson wrote:
>>
>> On Wed, Feb 25, 2015 at 9:13 AM, Elmer Beardshall
>> <aebeardshall@comcast.net> wrote:
>>>
>>> Where is the guide to the color coding and explanation of the manual.
>>> Example below – green is ?
>>>
>>
>>
>>
>>
>> Interesting question.
>>
>> We don't actually even follow
>> http://php.net/highlight_string so...
>>
>> Maybe we should add this to http://php.net/about.prototypes
>> ?
>>
>> -Hannes
>>
>
>
> Hi Elmers,
> PHP's highlight_string uses just a very small number of colors, which are
> defined in http://lxr.php.net/xref/PHP_TRUNK/Zend/zend_highlight.h#25æ ù
> =öîW¹ó"Œ‘´WK
>
> Basically that means:
> Text/HTML: black (#000000)
> Comments: orange (#FF8000)
> Tags, trait names, function names, method names, class names, etc.: blue
> (#0000BB)
> Encapsulated strings: red (#DD0000)
> (reserved) Keywords: green (#007700) such as echo, print, etc.).
>
> I agree this should be put in a more readable format on the highlight_string
> and _file pages IMO. Even though there is a warning that the color output
> may change at any time; IMO it should still tell you what the colors mean..
>
> - Tul
>
> ---
> This email has been checked for viruses by Avast antivirus software.
> http://www.avast.com
>