Basic

Inline Code

To denote a word or phrase as code, enclose it in backticks (`).
faraday cage

Code Block

Use fenced code blocks by enclosing code in three backticks.
helloWorld()

Syntax Highlighting

Put the name of your programming language after the three backticks to get syntax highlighting. We use Prism for syntax highlighting.
const hello = "world";

Names

You can add more text after the programming language to set the name of your code example. The name appears at the top of the code block.
Example
const hello = "world";

Code Groups

Want to display multiple code examples side by side? Use the CodeGroup component.
const hello = "world";