---
title: "Code and Math"
description: "How to show inline and multiline code and math in your documentation"
category: "Components"
order: 1
---

# Code

## Inline Code

Write inline code like this:

```mdx
this is some `inline code`
```

### Result:

this is some `inline code`

## Multiline Code

Write multiline code like this (specify the language for syntax highlighting):


````mdx
```js
console.log("this is some code");
```
````

### Result:

```js
console.log("this is some code");
```

## Math

Write inline math like this:

```mdx
Inline math: $a_x = x^2$
```

### Result:

Inline math: $a_x = x^2$

Write block math like this:

```mdx
$$
\int_0^\infty \frac{x^3}{e^x} \, dx
$$
```

### Result:

$$
\int_0^\infty \frac{x^3}{e^x} \, dx
$$


