Skip to content

test #923

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

test #923

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions code.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@

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

<Info>
This is acallout

Check warning on line 12 in code.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

code.mdx#L12

Did you really mean 'acallout'?
</Info>

### Inline code

To denote a `word` or `phrase` as code, enclose it in backticks (\`).
Expand All @@ -22,7 +26,7 @@

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

```java HelloWorld.java lines icon="java"
```java HelloWorld.java icon=java lines
class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World!");
Expand Down Expand Up @@ -57,7 +61,7 @@

Enable syntax highlighting by specifying the programming language after the opening backticks of a code block.

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.

Check warning on line 64 in code.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

code.mdx#L64

Did you really mean 'Shiki's'?

```java
class HelloWorld {
Expand Down Expand Up @@ -95,7 +99,7 @@

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.

```javascript icon="square-js"
```javascript icon=square-js
const hello = "world";
```

Expand All @@ -109,7 +113,7 @@

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

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

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

```javascript Line Focus Example focus= {2,4-5}
```javascript Line Focus Example focus=2,4,5
const greeting = "Hello, World!";
function sayHello() {
console.log(greeting);
Expand Down Expand Up @@ -304,7 +308,7 @@

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

```js Diff Example icon="code" lines
```js Diff Example icon=code lines
const greeting = "Hello, World!"; // [!code ++]
function sayHello() {
console.log("Hello, World!"); // [!code --]
Expand Down
Loading