# CommentHighlightMode Property

> Returns or sets how commented text is highlighted: never (txNever), only when it holds the input position (txActivated, default) or always (txAlways).

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Property
- **Path:** TX Text Control ActiveX > API Reference > TXTextControl > CommentHighlightMode Property
- **185 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/commenthighlightmode-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/commenthighlightmode-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/commenthighlightmode-property/llms-full.txt

---

This property returns or sets a value determining how commented text is highlighted in the document. Commented text can be highlighted always, never or only when the commented text contains the current text input position.

Introduced: 30.0.

### Syntax

```vbscript
TXTextControl.CommentHighlightMode [= Mode]
```

### Constants

The following lists the possible property values:

| Constant | Description |
|---|---|
| 1 - txNever | Commented text is not highlighted. |
| 2 - txActivated | Default value. A commented text is only highlighted when it contains the current text input position. |
| 3 - txAlways | Commented text is always highlighted. |

### Data Types

Integer.

### Limitations

Run time only.

### See Also

- [Programming Category: Commenting a document](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/comments/llms-full.txt)

---

## Nearby

- **Previous:** [CommentGetReplied Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/commentgetreplied-method/llms-full.txt)
- **Next:** [CommentInsert Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/commentinsert-method/llms-full.txt)
