Skip to main content

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

OptionTypeOptionalDefaultDescription
languagestring✔️noneset language to syntax higlighting
showLineNumbersboolean✔️falseshows line numbers
highlightLinesstring✔️nonemakes this line focused

Supported Languages

Supports all popular programming languages. List of supported languages here.