# Javascript: FootnoteCollection.getHighlightMode Method

> Gets a value indicating whether all the footnote numbers, reference marks as well as footnote marks, in the document are highlighted.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 32.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: FootnoteCollection.getHighlightMode Method
- **382 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/footnotecollection/gethighlightmode-method/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/footnotecollection/gethighlightmode-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/footnotecollection/gethighlightmode-method/llms-full.txt

---

### Description

Gets a value indicating whether all the footnote numbers, reference marks as well as footnote marks, in the document are highlighted.

### Syntax

```javascript
<void> FootnoteCollection.getHighlightMode(<RequestHighlightModeCallback> callback, [<ErrorCallback> errorCallback])
```

### Parameters

| Parameter | Description |
|---|---|
| callback | Receives the property value. |
| errorCallback | Optional. Is called when the operation failed with an error. |

### Examples

The following example demonstrates `FootnoteCollection.getHighlightMode` in a practical document-editing workflow. It gets a value indicating whether all the footnote numbers, reference marks as well as footnote marks, in the document are highlighted.

```javascript
function onTxError(error) {
    console.error("TX Text Control error:", error.msg);
    error.handled = true;
}

TXTextControl.footnotes.getHighlightMode(
    function(result) {
        if (!result) {
            console.warn("No highlight mode was returned.");
            return;
        }
        
        console.log("get highlight mode result:", result);
    },
    onTxError
);
```

---

## Nearby

- **Previous:** [Javascript: FootnoteCollection.getDefaultFootnoteHighlightColor Method](https://docs.textcontrol.com/ds-server/reference/javascript/footnotecollection/getdefaultfootnotehighlightcolor-method/llms-full.txt)
- **Next:** [Javascript: FootnoteCollection.getNumberFormat Method](https://docs.textcontrol.com/ds-server/reference/javascript/footnotecollection/getnumberformat-method/llms-full.txt)
