This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] Quick Q: how do I quote a line from a program inline?
- From: Michael Smith <smith at xml-doc dot org>
- To: Jean Jordaan <jean at upfrontsystems dot co dot za>
- Cc: docbook-apps at lists dot oasis-open dot org
- Date: Thu, 8 Jul 2004 18:52:04 +0900
- Subject: Re: [docbook-apps] Quick Q: how do I quote a line from a program inline?
- References: <40ED177F.9080107@upfrontsystems.co.za>
If you're using DocBook v4.3, you can mark those up with the <code>
element -
http://docbook.org/tdg/en/html/code.html
...its call signature is <code language='Python'>self, spec=None</code>
Jean Jordaan <jean@upfrontsystems.co.za> writes:
> .. also a couple of other small ones ..
>
> <para> ... its call
> signature is
> <literal>self, spec=None</literal>. Knowing Python, you can tell that
> <literal>self</literal> is the object instance the method is being called
> on,
> and is passed automatically by Python, and that
> <literal>spec</literal> is an optional keyword argument. Most importantly,
> perhaps, you know
> <emphasis>which</emphasis>
> <methodname>objectValues</methodname> is being called (there are four in
> total).</para>
>
> Those <literal> elements are wrong, but I can't think what I should
> replace them with. Any suggestions from the masters?
>
> Regards,
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.