Skip to content
Closed

Test #984

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
15 changes: 10 additions & 5 deletions code.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@

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

<Check>
Test\
hththth

Check warning on line 13 in code.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

code.mdx#L13

Did you really mean 'hththth'?
</Check>

### Inline code

To denote a `word` or `phrase` as code, enclose it in backticks (\`).
Expand All @@ -22,7 +27,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 +62,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 65 in code.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

code.mdx#L65

Did you really mean 'Shiki's'?

```java
class HelloWorld {
Expand Down Expand Up @@ -95,7 +100,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 +114,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 +136,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 @@ -316,7 +321,7 @@

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

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