This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
Re: [docbook] How to mark up inline program listings?
- From: Tobias Reif <tobiasreif at pinkjuice dot com>
- To: docbook at lists dot oasis-open dot org
- Cc: steven dot cogorno at sun dot com
- Date: Fri, 20 Jun 2003 19:36:23 +0200
- Subject: Re: [docbook] How to mark up inline program listings?
- References: <200306201655.h5KGtSZI016646@village.sfbay.sun.com>
Steven Cogorno wrote:
Tobias Reif said:
spe142> echo 'print "Hello world :)\\n"' > hw.rb
spe142> cat hw.rb
print "Hello world :)\n"
spe142> ruby hw.rb
Hello world :)
spe142>
Tobias,
I would still consider that <screen>, not </programlisting>.
Yes, but that was just to show that print "Hello world :)\n" is a
program, and not userinput. Sure I'd markup the above as screen.
My question was how to mark up the following:
<p>To print out "hello world",
save the program <code>print "Hello world :)\n"</code>, and
feed it to Ruby.</p>
We would use <literal> for that case.
... which doesn't say that the contained text is a program.
Tobi
--
http://www.pinkjuice.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-help@lists.oasis-open.org