Skip to content

Commit ee23152

Browse files
devin-ai-integration[bot]cdonel707devalog
authored
Add supported syntax highlighting languages documentation (#1758)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Chris McDonnell <[email protected]> Co-authored-by: Devin Logan <[email protected]>
1 parent 187f10a commit ee23152

File tree

1 file changed

+18
-1
lines changed
  • fern/products/docs/pages/component-library/default-components

1 file changed

+18
-1
lines changed

fern/products/docs/pages/component-library/default-components/code-blocks.mdx

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,24 @@ description: 'Learn how to enhance your documentation with customizable code blo
44
max-toc-depth: 2
55
---
66

7-
The `<CodeBlock>` 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.
7+
The `<CodeBlock>` 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.
8+
9+
<Info title="Supported languages">
10+
Fern supports [Shiki](https://shiki.matsu.io/) syntax highlighting for the following languages:
11+
12+
- `curl`
13+
- `python`
14+
- `javascript` (aliases: `js`, `node`)
15+
- `typescript` (aliases: `ts`)
16+
- `go`
17+
- `ruby`
18+
- `csharp`
19+
- `php`
20+
- `swift`
21+
- `rust`
22+
23+
If you specify a language that's not on this list, Fern will still display the code block but without syntax highlighting.
24+
</Info>
825

926
## Usage
1027

0 commit comments

Comments
 (0)