---
title: Commenting a rule
description: "Individual rules can be commented. A rule's comment appears directly below the rule's name. ## Procedure 1. In the **displayed rules** view, double click anywhere on the rule you want to comment. 1. This places the rule in edit mode.…"
url: "https://www.stilo.com/docs/migrate/editing-rules/commenting-a-rule/"
updated: "2021-04-24"
category: Rules / Editing Rules
tags:
  - Rules
---

# Commenting a rule

Individual rules can be commented.

A rule's comment appears directly below the rule's name.

## Procedure

1. In the **displayed rules** view, double click anywhere on the rule you want to comment.
   1. This places the rule in edit mode.
2. Double-click the comment text which appears directly under the rule's name.
   1. If no comment has been specified for the rule, the string **an unspecified rule comment** will be shown.
3. Enter the desired comment into the comment text area.
4. Click anywhere outside of the comment text area to stop commenting the rule.

## Result

A comment has been added to the rule.

## Once you are done

Although the rule has been updated within the rules editor, the change has not yet been propagated to the portal. To commit the change to the portal, you must save the rule set.

 

#### Prerequisite Concepts

- [Edit Mode](https://www.stilo.com/docs/migrate/getting-started-rules/edit-mode/)

#### Supporting Reference Material

- [Style Test](https://www.stilo.com/docs/migrate/types-of-tests-used-in-rules/style-test/)
- [Property Test](https://www.stilo.com/docs/migrate/types-of-tests-used-in-rules/property-test/)
- [Logical Group Test](https://www.stilo.com/docs/migrate/types-of-tests-used-in-rules/logical-group-test/)
- [Content Test](https://www.stilo.com/docs/migrate/types-of-tests-used-in-rules/content-test/)
- [Context Test](https://www.stilo.com/docs/migrate/types-of-tests-used-in-rules/context-test/)
- [Contains Element Test](https://www.stilo.com/docs/migrate/types-of-tests-used-in-rules/contains-element-test/)
- [Patterns](https://www.stilo.com/docs/migrate/types-of-tests-used-in-rules/patterns/)

#### Related Tasks

- [Deleting a Rule](https://www.stilo.com/docs/migrate/editing-rules/deleting-a-rule/)
- [Turning a rule on or off](https://www.stilo.com/docs/migrate/editing-rules/turning-a-rule-on-or-off/)
- [Adding a Test in a Condition](https://www.stilo.com/docs/migrate/editing-rules/adding-a-test-in-a-condition/)
- [Deleting a Test From a Condition](https://www.stilo.com/docs/migrate/editing-rules/deleting-a-test-from-a-condition/)
- [Moving a Test in a Condition](https://www.stilo.com/docs/migrate/editing-rules/moving-a-test-in-a-condition/)
- [Adding an Annotation](https://www.stilo.com/docs/migrate/editing-rules/adding-an-annotation/)
- [Deleting an Annotation](https://www.stilo.com/docs/migrate/editing-rules/deleting-an-annotation/)
- [Moving an Annotation](https://www.stilo.com/docs/migrate/editing-rules/moving-an-annotation/)
