This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [docbook-apps] Quick Q: how do I quote a line from a program inline?


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/.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]