Documentation
Syntax Highlight
Add syntax highlighting to your code blocks with customizable styling and features. The component offers extensive customization options including line numbers, copy buttons, language indicators, and custom theming to match your brand. For simpler use cases, you can also use standard Markdown code blocks as described in Code Blocks.
You can also use backticks to highlight code blocks in Markdown files, see Code Blocks for more information.
Import
Code
Types
Code
Usage
You can either use children
or code
prop to pass the code to the component.
Code
Result
Code
Last modified on