Code Highlighting
You can use a Code Highlighting by wrapping code with three backticks in .mdxfile. You can also set code options using mdx passing prop syntax. The options list is described in the table below.
Code Higlighting Options
| Option | Type | Optional | Default | Description |
|---|---|---|---|---|
| language | string | ✔️ | none | set language to syntax higlighting |
| showLineNumbers | boolean | ✔️ | false | shows line numbers |
| highlightLines | string | ✔️ | none | makes this line focused |
Supported Languages
Supports all popular programming languages. List of supported languages here.