---
title: p.reference.syntax
description: "## Syntax **p.reference.syntax**   ## Purpose The p.reference.syntax annotation is used to tag an element as being an example of code syntax. This will be a generic form of the code, function, or other programming component. ## Examples The following…"
url: "https://www.stilo.com/docs/migrate/linking-referencing-and-keywords/p-reference-syntax/"
updated: "2023-12-04"
category: Annotations / Linking, Referencing and Keywords
tags:
  - Annotations
---

# p.reference.syntax

## Syntax

**p.reference.syntax**

 

## Purpose

The p.reference.syntax annotation is used to tag an element as being an example of code syntax. This will be a generic form of the code, function, or other programming component.

## Examples

The following is an example of a time where you might want to use the p.reference.syntax annotation:

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

*Note: the relevant paragraph has been marked in bold for this example. The paragraph is not bold in the source document.*

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

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

*Note: the p.code annotation is also applied to this paragraph. See p.code for more information.*

 

The following is the DITA XML output for the previous rule:

 

<refsyn><codeblock>for item in range:</codeblock></refsyn>

````
