This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
Inline code fragments
- From: Rune Enggaard Jensen <rune at enggaard-lausen dot dk>
- To: docbook at lists dot oasis-open dot org
- Date: Fri, 11 Jan 2002 12:29:11 +0100
- Subject: DOCBOOK: Inline code fragments
Hi all!
What is the best way of marking up inline program (C++) code?
An example:
<para>Instead of using the construct
<whichelementhere>i = i+1</whichelementhere> you should use
<whichelementhere>i += 1</whichelementhere>.
I thought of using <quote role="code"> or the "catch all" element
<phrase role="code"> and customizing the stylesheets.
Is this sensible or is there a better approach?
Best regards
Rune Enggaard Jensen