[**API**](../API.md) • **Docs**

***

# Function: createCSSCustomHighlightRenderer()

> **createCSSCustomHighlightRenderer**(`matchers`): [`Renderer`](../type-aliases/Renderer.md)

**`Experimental`**

[createRegexRenderer](createRegexRenderer.md) but rendered with [CSS Custom Highlight API](https://developer.mozilla.org/en-US/docs/Web/API/CSS_Custom_Highlight_API).

## Parameters

• **matchers**: [`RegExp`, `string`][]

## Returns

[`Renderer`](../type-aliases/Renderer.md)

## Defined in

[src/renderers/regex/index.tsx:166](https://github.com/inokawa/rich-textarea/blob/d85a9d37692a634c883a1362722567fa1003e79e/src/renderers/regex/index.tsx#L166)
