Skip to content

Commit 406d0d9

Browse files
Add code language table to show IDs along with language names
1 parent 0bbed20 commit 406d0d9

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

code.mdx

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Code"
33
description: "Display inline code and code blocks"
4-
icon: 'code'
4+
icon: "code"
55
---
66

77
## Basic
@@ -14,8 +14,6 @@ To denote a `word` or `phrase` as code, enclose it in backticks (\`).
1414
To denote a `word` or `phrase` as code, enclose it in backticks (`).
1515
```
1616

17-
18-
1917
### Code Block
2018

2119
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.
@@ -62,27 +60,29 @@ class HelloWorld {
6260

6361
We use [Shiki](https://shiki.style/guide) for syntax highlighting and support these languages:
6462

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
63+
| Language | ID |
64+
| ------------- | ------------ |
65+
| Bash | `bash` |
66+
| Laravel Blade | `blade` |
67+
| C | `c` |
68+
| C++ | `c++` |
69+
| C# | `c#` |
70+
| Dart | `dart` |
71+
| Go | `go` |
72+
| Java | `java` |
73+
| JavaScript | `javascript` |
74+
| JSON | `json` |
75+
| JSX | `jsx` |
76+
| Kotlin | `kotlin` |
77+
| Log | `log` |
78+
| Markdown | `markdown` |
79+
| PHP | `php` |
80+
| Python | `python` |
81+
| Ruby | `ruby` |
82+
| Swift | `swift` |
83+
| TypeScript | `typescript` |
84+
| TSX | `tsx` |
85+
| YAML | `yaml` |
8686

8787
## Names
8888

0 commit comments

Comments
 (0)