Wouldn't it be obvious though, that examples should be wrapped in <?php ?>
tags if the code was used in real life?   I thought that I read somewhere
around here that using the <?php ?> tags in your examples was more for full
length examples and not code snippets...

Daniel

----- Original Message -----
From: "Sterling Hughes" <[EMAIL PROTECTED]>
To: "Stig S�ther Bakken" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, March 15, 2001 8:29 AM
Subject: Re: [PHP-DOC] cvs: phpdoc /en/functions bzip2.xml


On 15 Mar 2001, Stig [iso-8859-1] S�ther Bakken wrote:

> ["Sterling Hughes" <[EMAIL PROTECTED]>]
> > sterling Wed Mar 14 23:10:03 2001 EDT
> >
> >   Modified files:
> >     /phpdoc/en/functions bzip2.xml
> >   Log:
> >   Added some <?php ?> tags and expand some of the code examples.
>
> The way I intended to use the "role" attribute for <programlisting>,
> you don't need the <?php ?> tags for code if role="php".  If you do
> add the tags, use role="html".  The idea is that a stylesheet may want
> to apply syntax highlighting to examples, and then you need to know if
> you are starting inside or outside a php code block.
>
>  - Stig
>
Ok, I find it clearer to have all examples of php code wrapped in
<?php ?> tags.  I'll change the role == "html"...

-Sterling




Reply via email to