OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook] Tag for "inline" program listing fragments ?


Hi,

Maybe <code> : http://www.docbook.org/tdg/en/html/code.html
It's the exact definition of what you're searching :
"The code element is an inline element for identifying small fragments of programming language code."

Regards,
Marie.

Roland Mainz a écrit :
Hi!

----

Does anyone know a way to do "inline" program listings, for example a
text which only shows fragments of an example code ?

Example:
-- snip --
If it more efficient to use <literal>(( $? == 0 ))</literal> instead of
<literal>[ $? -eq 0 ]</literal>
-- snip --
I am looking for a way to replace <literal> with a tag which says it's a
program listing "fragment" (e.g. not complete code) which should be
rendered "inline" using a "monospaced" font (and not as seperate block
like <programlisting>).

----

Bye,
Roland

  


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]