<!--
{
  "availability" : [
    "macOS: 15.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTextHighlightStyleDefault",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@NSTextHighlightStyleDefault"
  },
  "title" : "NSTextHighlightStyleDefault"
}
-->

# NSTextHighlightStyleDefault

The default highlight style to apply to text.

```
extern NSTextHighlightStyle const NSTextHighlightStyleDefault;
```

## Discussion

Use this constant as the value for the [`NSTextHighlightStyleAttributeName`](/documentation/AppKit/NSTextHighlightStyleAttributeName) attribute. The system applies the default highlight color to your text. To specify a different highlight color, add the [`NSTextHighlightColorSchemeAttributeName`](/documentation/AppKit/NSTextHighlightColorSchemeAttributeName) attribute to your text and set its value to the color you want.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)