Skip to content

Commit 2e5b7e5

Browse files
committed
add more options to code block example
1 parent 50de02d commit 2e5b7e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

code.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ To denote a `word` or `phrase` as code, enclose it in backticks (`).
2121

2222
Use [fenced code blocks](https://www.markdownguide.org/extended-syntax/#fenced-code-blocks) by enclosing code in three backticks. Specify the programming language for syntax highlighting and to enable meta options. Add any meta options after the language.
2323

24-
```java HelloWorld.java
24+
```java HelloWorld.java lines icon="java"
2525
class HelloWorld {
2626
public static void main(String[] args) {
2727
System.out.println("Hello, World!");
@@ -30,7 +30,7 @@ class HelloWorld {
3030
```
3131

3232
````mdx
33-
```java HelloWorld.java
33+
```java HelloWorld.java lines icon="java"
3434
class HelloWorld {
3535
public static void main(String[] args) {
3636
System.out.println("Hello, World!");

0 commit comments

Comments
 (0)