diff --git a/code.mdx b/code.mdx index b667b3268..8261e1cbd 100644 --- a/code.mdx +++ b/code.mdx @@ -1,7 +1,7 @@ --- title: "Code" description: "Display inline code and code blocks" -icon: 'code' +icon: "code" --- ## Basic @@ -14,8 +14,6 @@ To denote a `word` or `phrase` as code, enclose it in backticks (\`). To denote a `word` or `phrase` as code, enclose it in backticks (`). ``` - - ### Code Block 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 { ``` ```` -We use [Shiki](https://shiki.style/guide) for syntax highlighting and support these languages: - -* Bash -* Blade -* C -* C++ -* C# -* Dart -* Go -* Java -* JavaScript -* JSON -* JSX -* Kotlin -* Log -* Markdown -* PHP -* Python -* Ruby -* Swift -* TypeScript -* TSX -* YAML +### Languages + +We use [Shiki](https://shiki.style/languages) for syntax highlighting and support these languages using standard markdown syntax: + +
| Language | +ID | +
|---|---|
| Bash | +bash |
+
| Laravel Blade | +blade |
+
| C | +c |
+
| C++ | +c++ |
+
| C# | +c# |
+
| Dart | +dart |
+
| Go | +go |
+
| Java | +java |
+
| JavaScript | +javascript |
+
| JSON | +json |
+
| JSX | +jsx |
+
| Kotlin | +kotlin |
+
| Log | +log |
+
| Markdown | +markdown |
+
| PHP | +php |
+
| Python | +python |
+
| Ruby | +ruby |
+
| Swift | +swift |
+
| TypeScript | +typescript |
+
| TSX | +tsx |
+
| YAML | +yaml |
+