Re: cvs: phpdoc /en/functions bzip2.xml

From: Date: Thu, 15 Mar 2001 22:53:26 +0000
Subject: Re: cvs: phpdoc /en/functions bzip2.xml
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969334703@lists.php.net to get a copy of this message
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" <sterling@designmultimedia.com> To: "Stig Sæther Bakken" <ssb@fast.no> Cc: <phpdoc@lists.php.net> 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" <sterling@designmultimedia.com>] > > 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

« previous php.doc (#969334703) next »