Re: cvs: peardoc /en/package/structures/structures-datagrid/structures-datagrid fill.xml

From: Date: Fri, 30 Jun 2006 14:22:39 +0000
Subject: Re: cvs: peardoc /en/package/structures/structures-datagrid/structures-datagrid fill.xml
References: 1 2 3  Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-8107@lists.php.net to get a copy of this message
Hi Greg, Greg Beaver wrote:
Daniel Convissor wrote:
Hi Olivier: On Thu, Jun 29, 2006 at 10:43:58PM -0000, Olivier Guilyardi wrote:
olivierg Thu Jun 29 22:43:58 2006 UTC
 Modified files:                 /peardoc/en/package/structures/structures-datagrid/structures-datagrid	
                                                                         	fill.xml  Log:
fix Request #7969 'Documentation for using my own form container'
...
</example></para>
+        <para><example><title>Fill a form with sort fields</title><programlisting role="php-highlighted">1     &lt;?php
+2     require_once &apos;HTML/QuickForm.php&apos;;
+3     
Thanks SOOO much for improving the documentation. This commit raises several issues. First, don't number the lines. Second, <example> doesn't need to be in should be justified left, not nested. Fifth, put sample code between <![CDATA[ ...sample... ]]> tags -- obviating the need to escape the sample (> can be used instead of &gt;). Sixth, the "role" attribute should be just "php," not php-highlighted.
This addresses a deficiency in docbook, which does not allow source code with links to documentation, something that is a very nice thing to have. If you do role="php", the stupid thing converts all tags into HTML entities. phpDocumentor has done this for about 3 years, Dan. Perhaps we're being a bit too anal retentive?
a <para>. Third, nest the XML nicely, please. Fourth, the example code
Olivier, you can fix this by installing XML_Beautifier and re-generating.
I'm gonna do this. Tell me, is there any easy way, in PhpDoc, to register a custom tag, together with a callback function ? My callback function would be passed the tag arguments and would return formated content. By the way, this @example tag, used in conjunction with external files, is really a great feature. However, to be honest, I must say one thing : the documentation (tutorial/manual) at phpdoc.org is a complete mess. IIRC, a few months ago, I could find my way much easier, but it seems like it's changed meanwhile. -- og

« previous php.pear.doc (#8107) next »