View Categories

p.code

< 1 min read

Table of Contents

Syntax #

p.code

Purpose #

The p.code annotation tags a paragraph element as being a code block. This is used to mark a full paragraph containing only code. This allows you to preserve and propagate code-specific formatting to full paragraphs.

Examples #

The following is an example of a time when you might want to use the p.code annotation:

The following is an example of a rule that will apply p.code:

The following is an example of the DITA output you would get from this annotation.

 

<conbody>
<codeblock>
#!/usr/bin/omdc -f
-s program.xom
-save program.xvc
-i /opt/OmniMark/xin/
</codeblock>
</conbody>