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
+25-1Lines changed: 25 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -58,7 +58,7 @@ You can add meta options to your code blocks to customize their appearance.
58
58
59
59
Enable syntax highlighting by specifying the programming language after the opening backticks of a code block.
60
60
61
-
We use Shiki for syntax highlighting and support all available languages. See the full list of [languages](https://shiki.style/languages) in Shiki's documentation.
61
+
We use [Shiki](https://shiki.style/) for syntax highlighting and support all available languages. See the full list of [languages](https://shiki.style/languages) in Shiki's documentation.
62
62
63
63
```java
64
64
classHelloWorld {
@@ -300,3 +300,27 @@ function sayHello() {
300
300
sayHello();
301
301
```
302
302
````
303
+
304
+
### Diff
305
+
306
+
Add single line comments with `[!code ++]` and `[!code --]` to mark added and removed lines. You can also mark multiple lines with a single comment, such as `[!code ++:3]` or `[!code --:5]`.
0 commit comments