List Info

Thread: Tag for "inline" program listing fragments ?




Tag for "inline" program listing fragments ?
user name
2007-08-15 20:25:37
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

-- 
  __ .  . __
 (o. / /.o) roland.mainznrubsig.org
  __//__/  MPEG specialist,
C&&JAVA&&Sun&&Unix programmer
  /O /== O  TEL +49 641 7950090
 (;O/ / O;)

------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-helplists.oasis-open.org


Re: Tag for "inline" program listing fragments ?
user name
2007-08-16 02:47:51
Hi,

Maybe <code&gt; : 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 :
nrubsig.org" type="cite">
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

  
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )