Skip to content

Commit 60ec37e

Browse files
docs: add supported syntax highlighting languages for custom code samples
Co-Authored-By: Chris McDonnell <[email protected]>
1 parent 1255f34 commit 60ec37e

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

fern/products/api-def/openapi-pages/extensions/examples.mdx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,20 @@ paths:
6868
6969
client.users.get("user-1234")
7070
```
71+
72+
#### Supported languages
73+
74+
Fern supports syntax highlighting for the following languages in custom code samples:
75+
76+
- `curl`
77+
- `python`
78+
- `javascript` (aliases: `js`, `node`)
79+
- `typescript` (aliases: `ts`)
80+
- `go`
81+
- `ruby`
82+
- `csharp`
83+
- `php`
84+
- `swift`
85+
- `rust`
86+
87+
If you specify a language that is not in this list, Fern will still display the code sample but without syntax highlighting.

0 commit comments

Comments
 (0)