---
title: p.code
description: "## 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.…"
url: "https://www.stilo.com/docs/migrate/prolog/p-code/"
updated: "2023-10-30"
category: Annotations / Prolog
tags:
  - Annotations
---

# p.code

## 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:

![](https://www.stilo.com/wp-content/uploads/2023/10/stilo-dita-xml-annotation-p.code_.png)

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

![](https://www.stilo.com/wp-content/uploads/2023/10/stilo-dita-xml-annotation-p.code1_.png)

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>```

 

 
