Code Highlighting
Nextra uses Shikiâ and Rehype Pretty Codeâ to highlight the code blocks. This section covers how you can customize it.
Meta strings
Highlight lines
Title
```jsx filename="_app.js"
import 'nextra-theme-docs/style.css'
export default function Nextra({ Component, pageProps }) {
const getLayout = Component.getLayout || (page => page)
return getLayout(<Component {...pageProps} />)
}
```_app.js
import 'nextra-theme-docs/style.css'
export default function Nextra({ Component, pageProps }) {
const getLayout = Component.getLayout || (page => page)
return getLayout(<Component {...pageProps} />)
}Supported Languages
You can find a list of supported languages hereâ.