OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: How to indicate code snippets in Docbook?


Sorry for this newbie question. I'm trying to learn this stuff as I 
write. I'm a bit stumped on how to specify inline code snippets and 
set-apart (separate "paragraph") code examples.

In HTML, I would use <code>a[i]</code> and

<pre>
   public void foo() {
   }
</pre>

for these roles. What's the nearest Docbook equivalent?

Bob Foster



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]