Skip to content
Open
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
24 changes: 24 additions & 0 deletions src/content/editor/extensions/nodes/code-block.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,30 @@ CodeBlock.configure({
})
```

### enableTabIndentation

Define whether pressing the Tab key should be used for indentation.

Default: `false`

```js
CodeBlock.configure({
enableTabIndentation: true,
})
```

### tabSize

Set the number of spaces to use for indentation.

Default: `4`

```js
CodeBlock.configure({
tabSize: 2,
})
```

### HTMLAttributes

Custom HTML attributes that should be added to the rendered HTML tag.
Expand Down