Re: [docbook] the proper markup for displaying a file snippet?

From
Bob Stayton <>
Date
2011-07-07T16:10:42+00:00
ID
025d01cc3cc0$6108b610$6600a8c0@pazu
Thread
Re: [docbook] the proper markup for displaying a file snippet?
I think literallayout is the appropriate element.  As the Definitive Guide says, " it 
does not have strong semantic overtones". You can add a class="monospaced" attribute 
if you want that font in the output.

Bob Stayton
Sagehill Enterprises



----- Original Message ----- 
From: "Robert P. J. Day" <>
To: <>
Sent: Thursday, July 07, 2011 5:42 AM
Subject: [docbook] the proper markup for displaying a file snippet?


>   (apologies for such trivial questions -- i'm only just getting back  to docbook 
> after quite some time away.)
>
>   if i wanted to display the contents (or an excerpt thereof) of a  simple text file 
> such as, say, a config file, what is the semantically  proper element?  i don't want 
> to use <programlisting> because it's not  technically a program.  and 
> <literallayout> and <screenshot> seem  similarly inappropriate.  what i want is 
> something equivalent to  <filelisting>.  what do people here use for that?  thanks.
>
> rday
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 
> For additional commands, e-mail: 
>
>
>