This is the mail archive of the docbook@lists.oasis-open.org mailing list for the DocBook project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]