# SiMarkdownHighlighterComponent Type documentation

## TypeScript declaration

### [SiMarkdownHighlighterComponent](<https://github.com/siemens/element/blob/main/projects/element-ng/markdown/si-markdown.types.ts#L28-L37>)

**Kind:** interface

```
import type { SiMarkdownHighlighterComponent } from '@siemens/element-ng/markdown';
```

Interface a code highlighter component must implement

```
interface SiMarkdownHighlighterComponent
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [code](<https://github.com/siemens/element/blob/main/projects/element-ng/markdown/si-markdown.types.ts#L30-L30>) | `InputSignal<string>` | The code to be highlighted |
| [language](<https://github.com/siemens/element/blob/main/projects/element-ng/markdown/si-markdown.types.ts#L32-L32>) | `InputSignal<string>` | The language |
| [options](<https://github.com/siemens/element/blob/main/projects/element-ng/markdown/si-markdown.types.ts#L36-L36>) | `InputSignal<any>` | Options passed to the component |
| [updateLanguage](<https://github.com/siemens/element/blob/main/projects/element-ng/markdown/si-markdown.types.ts#L34-L34>) | `InputSignal<(lang?: string) => void>` | Function the highlighter can call to updated the displayed language |
