cvs: php-gtk-doc /manual/en/tutorials doccing.xml
| From: | Jo�o Ornelas | Date: | Tue, 13 Dec 2005 21:14:58 +0000 |
| Subject: | cvs: php-gtk-doc /manual/en/tutorials doccing.xml | ||
| Groups: | php.gtk.doc | ||
| Request: | Send a blank email to php-gtk-doc+get-1699@lists.php.net to get a copy of this message | ||
jp Tue Dec 13 21:14:58 2005 EDT
Modified files:
/php-gtk-doc/manual/en/tutorials doccing.xml
Log:
-Added a reference to <enumname> in the "Linking" section.
-Use a cheap hack to escape the endind CDATA tag (]]>) in the code linking examples.
-Used a similar hack to fix the "../" being added in CDATA before
&directory.examples;
http://cvs.php.net/viewcvs.cgi/php-gtk-doc/manual/en/tutorials/doccing.xml?r1=1.4&r2=1.5&diff_format=u
Index: php-gtk-doc/manual/en/tutorials/doccing.xml
diff -u php-gtk-doc/manual/en/tutorials/doccing.xml:1.4
php-gtk-doc/manual/en/tutorials/doccing.xml:1.5
--- php-gtk-doc/manual/en/tutorials/doccing.xml:1.4 Mon Oct 31 10:31:39 2005
+++ php-gtk-doc/manual/en/tutorials/doccing.xml Tue Dec 13 21:14:58 2005
@@ -13,7 +13,6 @@
So if you just want to read the manual, this
shouldn't be of any interest to you.
</simpara>
-
<para>
This documentation, like the php-gtk2 sources and the official
php documentation, resides at the CVS server of the php project
@@ -368,6 +367,17 @@
<listitem>
<para>
+ <emphasis>Enumerator links</emphasis> are also very simple:
+ <programlisting role="xml"><![CDATA[
+<enumname>GtkButtonBoxStyle</enumname>
+]]></programlisting>
+ It will result in:
+ <enumname>GtkButtonBoxStyle</enumname>.
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
<emphasis>Property links</emphasis> are a simple:
<programlisting role="xml"><![CDATA[
<propname class="GtkDialog">action_area</propname>
@@ -448,7 +458,7 @@
This is especially useful for readers who want to run
the examples themselves: No need to copy&paste the code, but
just execute it in the example code directory. Furthermore,
- it's more easy to test the examples when writing and checking
+ it's easier to test the examples when writing and checking
the manual.
</para>
@@ -466,7 +476,7 @@
<title>Simple GtkAboutDialog</title>
<programlisting role="php">
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
-
href="&directory.examples;/reference/gtk/gtkaboutdialog/constructor.phpw"
parse="text">
+
]]>href="&directory.examples;/reference/gtk/gtkaboutdialog/constructor.phpw"
parse="text"><![CDATA[
<xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback>
</xi:include>
</programlisting>
@@ -479,11 +489,14 @@
<programlisting role="xml"><![CDATA[
<programlisting role="php"><![CDATA[
//some php code here
-]] >
+]]>]]><![CDATA[</programlisting>
]]></programlisting>
- The <literal>CDATA</literal> section is necessary that you don't have
- to escape the code, and the closing <literal>]]></literal> has to be
- without the space.
+ The <literal>CDATA</literal> section is usefull because it allows you to
+ directly include code, without having to escape it. The
+ <?php and ?> tags aren't required in code snippets. Note that
+ <literal>CDATA</literal> opens a new document inside the current
+ document, alas requiring new indention. Don't be afraid of breaking your
+ indenting scheme inside CDATA sections.
</para>
</sect2>