You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: code.mdx
+99-26Lines changed: 99 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: "Code"
3
3
description: "Display inline code and code blocks"
4
-
icon: 'code'
4
+
icon: "code"
5
5
---
6
6
7
7
## Basic
@@ -14,8 +14,6 @@ To denote a `word` or `phrase` as code, enclose it in backticks (\`).
14
14
To denote a `word` or `phrase` as code, enclose it in backticks (`).
15
15
```
16
16
17
-
18
-
19
17
### Code Block
20
18
21
19
Use [fenced code blocks](https://www.markdownguide.org/extended-syntax/#fenced-code-blocks) by enclosing code in three backticks and follow the leading ticks with the programming language of your snippet to get syntax highlighting. Optionally, you can also write the name of your code after the programming language.
@@ -60,29 +58,104 @@ class HelloWorld {
60
58
```
61
59
````
62
60
63
-
We use [Shiki](https://shiki.style/guide) for syntax highlighting and support these languages:
64
-
65
-
* Bash
66
-
* Blade
67
-
* C
68
-
* C++
69
-
* C#
70
-
* Dart
71
-
* Go
72
-
* Java
73
-
* JavaScript
74
-
* JSON
75
-
* JSX
76
-
* Kotlin
77
-
* Log
78
-
* Markdown
79
-
* PHP
80
-
* Python
81
-
* Ruby
82
-
* Swift
83
-
* TypeScript
84
-
* TSX
85
-
* YAML
61
+
### Languages
62
+
63
+
We use [Shiki](https://shiki.style/languages) for syntax highlighting and support these languages using standard markdown syntax:
0 commit comments