ઉપયોગી DocBook ટૅગ
અહિંયા અમુક DocBook ટૅગ છે કે જે મોટાભાગનાં ઉપયોગી છે જ્યારે કોડનું દસ્તાવેજ કરી રહ્યા છે.
To link to another section in the GTK docs:
<link linkend="glib-Hash-Tables">Hash Tables</link>
બહારનાં વિધેયનો સંદર્ભ લેવા માટે, દા.ત. મૂળભૂત C વિધેય:
<function>...</function>
To include example code:
<example> <title>Using a GHashTable.</title> <programlisting> ... </programlisting> </example>
<informalexample> <programlisting> ... </programlisting> </informalexample>
બુલેટ થયેલ યાદીઓને સમાવવા માટે:
<itemizedlist> <listitem> <para> ... </para> </listitem> <listitem> <para> ... </para> </listitem> </itemizedlist>
To include a note which stands out from the text:
<note> <para> Make sure you free the data after use. </para> </note>
પ્રકારનો સંદર્ભ લેવા માટે:
<type>unsigned char</type>
બહારનાં બંધારણનો સંદર્ભ લેવા માટે (GTK દસ્તાવેજોમાં વર્ણવેલ નથી):
<structname>XFontStruct</structname>
બંધારણનાં ક્ષેત્રનો સંદર્ભ લેવા માટે:
<structfield>len</structfield>
To refer to a class name, we could possibly use:
<classname>GtkWidget</classname>
લખાણ પર ભાર મૂકવા માટે:
<emphasis>This is important</emphasis>
ફાઇલનામો વાપરવા માટે:
<filename>/home/user/documents</filename>
કીઓ વાપરવાનું સંદર્ભ લેવા માટે:
<keycombo><keycap>Control</keycap><keycap>L</keycap></keycombo>