Date: Tue, 29 Apr 2003 10:55:38 +0200 From: Martin Heinen <martin@sumuk.de> To: Warren Block <wblock@wonkity.com> Cc: freebsd-docs@freebsd.org Subject: Re: "PROGRAMLISTING", "TITLE" not permitted Message-ID: <20030429105538.A46077@sumuk.de> In-Reply-To: <20030428175155.P29905@wonkity.com>; from wblock@wonkity.com on Mon, Apr 28, 2003 at 05:56:18PM -0600 References: <20030428183759.M89408@pakastelohi.cypherpunks.to> <20030428175155.P29905@wonkity.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Apr 28, 2003 at 05:56:18PM -0600, Warren Block wrote: > You can't do a <programlisting> inside a <screen>. It makes sense; a > program listing is, well, a program listing (presumably printed), while > <screen> is used to show what screen output looks like. I don't have my > files handy for the right way to do this, but you could do it this way: > > <screen>&prompt.root; <userinput>uname -r</userinput></screen> > <screen>5.0-RELEASE</screen> Using two screen elements puts some vertical space between the lines which looks ugly. Since the command prompt and the command output appears on the same screen, only one screen element should be used: | <screen>&prompt.root; <userinput>uname -r</userinput> | 5.0-RELEASE</screen> > Actually, I wonder if 5.0-RELEASE should also be wrapped with > <computeroutput> tags... You could also use <command> to mark up "uname". Besides userinput tags and replaceable tags, our documentation does not use additional mark up in screen elements. -- Marxpitn
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030429105538.A46077>