Inline code
Wrap a word or short expression in single backticks to render it as inline code:npm install command before starting the server.
Fenced code blocks
Use triple backticks with a language tag to render a syntax-highlighted code block:javascript, typescript, python, bash, json, yaml, mdx, sql, and many more.
Named code blocks
Add a filename after the language tag to label the code block with a file name:HelloWorld.java
Multi-language examples with CodeGroup
Use theCodeGroup component to display the same example in multiple languages or package managers as a tabbed interface:
CodeGroup becomes one tab. The tab label is taken from the filename you provide after the language tag.