Skip to content

Commit b1782af

Browse files
Documentation edits made through Mintlify web editor
1 parent 1523d12 commit b1782af

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

code.mdx

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ icon: "code"
88

99
You can add inline code snippets or code blocks. Code blocks support meta options for syntax highlighting, titles, line highlighting, icons, and more.
1010

11+
<Check>
12+
Test\
13+
hththth
14+
</Check>
15+
1116
### Inline code
1217

1318
To denote a `word` or `phrase` as code, enclose it in backticks (\`).
@@ -22,7 +27,7 @@ Use [fenced code blocks](https://www.markdownguide.org/extended-syntax/#fenced-c
2227

2328
Specify the programming language for syntax highlighting and to enable meta options. Add any meta options, like a title or icon, after the language.
2429

25-
```java HelloWorld.java lines icon="java"
30+
```java HelloWorld.java icon=java lines
2631
class HelloWorld {
2732
public static void main(String[] args) {
2833
System.out.println("Hello, World!");
@@ -95,7 +100,7 @@ const hello = "world";
95100

96101
Add an icon to your code block. You can use [FontAwesome](https://fontawesome.com/icons) icons, [Lucide](https://lucide.dev/icons/) icons, or absolute URLs.
97102

98-
```javascript icon="square-js"
103+
```javascript icon=square-js
99104
const hello = "world";
100105
```
101106

@@ -109,7 +114,7 @@ const hello = "world";
109114

110115
Highlight specific lines in your code blocks using `highlight` with the line numbers or ranges you want to highlight.
111116

112-
```javascript Line Highlighting Example highlight= {1-2,5}
117+
```javascript Line Highlighting Example {1,2,5}
113118
const greeting = "Hello, World!";
114119
function sayHello() {
115120
console.log(greeting);
@@ -131,7 +136,7 @@ sayHello();
131136

132137
Focus on specific lines in your code blocks using `focus` with line numbers or ranges.
133138

134-
```javascript Line Focus Example focus= {2,4-5}
139+
```javascript Line Focus Example focus=2,4,5
135140
const greeting = "Hello, World!";
136141
function sayHello() {
137142
console.log(greeting);
@@ -316,7 +321,7 @@ For multiple consecutive lines, specify the number of lines after a colon:
316321

317322
The comment syntax must match your programming language (for example, `//` for JavaScript or `#` for Python).
318323

319-
```js Diff Example icon="code" lines
324+
```js Diff Example icon=code lines
320325
const greeting = "Hello, World!"; // [!code ++]
321326
function sayHello() {
322327
console.log("Hello, World!"); // [!code --]

0 commit comments

Comments
 (0)