diff --git a/fern/products/docs/pages/component-library/default-components/code-blocks.mdx b/fern/products/docs/pages/component-library/default-components/code-blocks.mdx index e14ce4df8..3d584b20e 100644 --- a/fern/products/docs/pages/component-library/default-components/code-blocks.mdx +++ b/fern/products/docs/pages/component-library/default-components/code-blocks.mdx @@ -4,7 +4,24 @@ description: 'Learn how to enhance your documentation with customizable code blo max-toc-depth: 2 --- -The `` component displays code examples with syntax highlighting powered by [Shiki](https://shiki.matsu.io/). Code blocks support line highlighting, focusing, titles, and deep linking to make your code examples more readable and interactive. +The `` component displays code examples with syntax highlighting. Code blocks support line highlighting, focusing, titles, and deep linking to make your code examples more readable and interactive. + + + Fern supports [Shiki](https://shiki.matsu.io/) syntax highlighting for the following languages: + + - `curl` + - `python` + - `javascript` (aliases: `js`, `node`) + - `typescript` (aliases: `ts`) + - `go` + - `ruby` + - `csharp` + - `php` + - `swift` + - `rust` + + If you specify a language that's not on this list, Fern will still display the code block but without syntax highlighting. + ## Usage