Skip to content

Commit 2f121b4

Browse files
Documentation edits made through Mintlify web editor
1 parent 5bb60b1 commit 2f121b4

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

code.mdx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ 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+
<Info>
12+
This is acallout
13+
</Info>
14+
1115
### Inline code
1216

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

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

25-
```java HelloWorld.java lines icon="java"
29+
```java HelloWorld.java icon=java lines
2630
class HelloWorld {
2731
public static void main(String[] args) {
2832
System.out.println("Hello, World!");
@@ -95,7 +99,7 @@ const hello = "world";
9599

96100
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.
97101

98-
```javascript icon="square-js"
102+
```javascript icon=square-js
99103
const hello = "world";
100104
```
101105

@@ -109,7 +113,7 @@ const hello = "world";
109113

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

112-
```javascript Line Highlighting Example highlight= {1-2,5}
116+
```javascript Line Highlighting Example {1,2,5}
113117
const greeting = "Hello, World!";
114118
function sayHello() {
115119
console.log(greeting);
@@ -131,7 +135,7 @@ sayHello();
131135

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

134-
```javascript Line Focus Example focus= {2,4-5}
138+
```javascript Line Focus Example focus=2,4,5
135139
const greeting = "Hello, World!";
136140
function sayHello() {
137141
console.log(greeting);
@@ -304,7 +308,7 @@ sayHello();
304308

305309
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]`.
306310

307-
```js Diff Example icon="code" lines
311+
```js Diff Example icon=code lines
308312
const greeting = "Hello, World!"; // [!code ++]
309313
function sayHello() {
310314
console.log("Hello, World!"); // [!code --]

0 commit comments

Comments
 (0)