docbook: markup for shell input
Subject:
Re: markup for shell input
From:
David Horton ####@####.####
Date:
16 Jun 2003 22:13:51 -0000
Message-Id: <3EEE4283.4090308@megsinet.net>
Emma Jane Hogbin wrote:
> This is my current sentence:
>
> Do a <programlisting>locate <file></programlisting>
> if they're not where I think they should be.
>
> I don't really want the <prompt> bit in there was well. How should locate
> and file be marked up though? Maybe something like this:
> <programlisting><command>locate</command>
> <userinput><file></userinput></programlisting>
>
> does that look right?
>
> thanks!
>
How about:
Do a <command>locate <parameter>file</parameter></command> if they're
not where they should be.
Or if you are giving a literal filename, for example readme.txt:
Do a <command>locate <filename>readme.txt</filename></command> if
they're not where they should be.
-Dave