# Javascript: Footnote.getHighlightColor Method

> Gets the highlight color for the reference mark and the footnote mark.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 32.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: Footnote.getHighlightColor Method
- **385 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/footnote/gethighlightcolor-method/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/footnote/gethighlightcolor-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/footnote/gethighlightcolor-method/llms-full.txt

---

### Description

Gets the highlight color for the reference mark and the footnote mark.

### Syntax

```javascript
<void> Footnote.getHighlightColor(<RequestStringCallback> callback, [<ErrorCallback> errorCallback])
```

### Parameters

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

### Examples

The following example demonstrates `Footnote.getHighlightColor` in a practical document-editing workflow. It gets the highlight color for the reference mark and the footnote mark.

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

TXTextControl.footnotes.elementAt(0, function(footnote) {
    if (!footnote) {
        console.warn("No footnote is available.");
        return;
    }

    footnote.getHighlightColor(
        function(result) {
            console.log("get highlight color result:", result);
        },
        onTxError
    );
}, onTxError);
```

---

## Nearby

- **Previous:** [Javascript: Footnote.edit Method](https://docs.textcontrol.com/ds-server/reference/javascript/footnote/edit-method/llms-full.txt)
- **Next:** [Javascript: Footnote.getHighlightMode Method](https://docs.textcontrol.com/ds-server/reference/javascript/footnote/gethighlightmode-method/llms-full.txt)
