Skip to content

Commit 5569ef2

Browse files
committed
move supported lang into callout
1 parent f8a0070 commit 5569ef2

File tree

1 file changed

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

1 file changed

+18
-18
lines changed

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

Lines changed: 18 additions & 18 deletions
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+
<Note>
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+
</Note>
825

926
## Usage
1027

@@ -22,23 +39,6 @@ console.log("hello world")
2239
```
2340
````
2441

25-
## Supported languages
26-
27-
Fern supports syntax highlighting for the following languages in code blocks:
28-
29-
- `curl`
30-
- `python`
31-
- `javascript` (aliases: `js`, `node`)
32-
- `typescript` (aliases: `ts`)
33-
- `go`
34-
- `ruby`
35-
- `csharp`
36-
- `php`
37-
- `swift`
38-
- `rust`
39-
40-
If you specify a language that's not in this list, Fern will still display the code block but without syntax highlighting.
41-
4242
## Variants
4343

4444
### Titles

0 commit comments

Comments
 (0)