# Javascript: SubTextPartInfo.highlightMode Property

> Optional. The highlight mode.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 26.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: SubTextPartInfo.highlightMode Property
- **157 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/subtextpartinfo/highlightmode-property/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/subtextpartinfo/highlightmode-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/subtextpartinfo/highlightmode-property/llms-full.txt

---

### Description

Optional. The highlight mode.

### Syntax

```javascript
<HighlightMode> SubTextPartInfo.highlightMode
```

### Examples

The following example demonstrates `SubTextPartInfo.highlightMode` in a practical document-editing workflow. Optional. The highlight mode.

```javascript
function inspectHighlightMode(subTextPartInfo) {
    const highlightMode = subTextPartInfo.highlightMode;
    console.log("highlight mode:", highlightMode);
}
```

---

## Nearby

- **Previous:** [SubTextPartInfo Object](https://docs.textcontrol.com/ds-server/reference/javascript/subtextpartinfo/llms-full.txt)
- **Next:** [Javascript: SubTextPartInfo.id Property](https://docs.textcontrol.com/ds-server/reference/javascript/subtextpartinfo/id-property/llms-full.txt)
