Add button for code blocks

This commit is contained in:
2026-01-20 07:53:37 +01:00
parent d3e087ad6e
commit 56e51b1c3c
8 changed files with 178 additions and 102 deletions

View File

@@ -145,6 +145,14 @@ Key settings:
## Features and usage
### 0) Editor toolbar: Code block button
The plugin adds a custom button to the DokuWiki editor toolbar for quickly inserting `<code>` blocks.
When editing a page, click the code block button (angle brackets icon `<>`) in the toolbar to wrap selected text in `<code></code>` tags, or to insert an empty code block at the cursor position.
This complements DokuWiki's built-in monospace formatting (`''`) by providing quick access to HTML code blocks.
### 1) List files by glob pattern
```