felixleopold20 downloadsVS Code-quality code blocks: Shiki syntax highlighting with 65+ themes, code execution with live I/O, embedded file rendering, and custom VS Code theme import.
VS Code-quality code blocks for Obsidian, powered by Shiki, the same syntax highlighting engine used by VS Code.
Works in both reading view and editor (live preview / source mode).
.json color theme from VS Codepy, js, sh, etc.)input(), process.stdin, read, etc.)![[file.py]] embeds as fully highlighted code blocksStatus: Submitted for community review via the Obsidian plugin submission portal. Obsidian has moved from GitHub PRs to a dedicated submission site for new community plugins.
main.js, manifest.json, and styles.css from the latest releasecode-suite in your vault's .obsidian/plugins/ directorygit clone https://github.com/felixleopold/obsidian-code-suite.git
cd obsidian-code-suite
npm install
npm run build
Output: dist/main.js
All settings are in Settings → CodeSuite:
| Setting | Description |
|---|---|
| Syntax theme | Choose from 65+ built-in themes or import your own |
| Import VS Code theme | Load a .json color theme file |
| Line numbers | Show/hide line numbers |
| Language label | Show/hide the language name in the header |
| Wide code blocks | Extend code blocks beyond content width |
| Enable code execution | Show Run button on supported languages |
| Execution timeout | Auto-kill after N seconds (5–120) |
| Working directory | Where code runs: vault root (default), home dir, or custom path |
| Python path | Custom Python binary or virtualenv path |
| Node.js path | Custom Node.js binary path |
| Extra env variables | Additional KEY=VALUE pairs for execution |
| Render embedded files | Highlight ![[file.py]] embeds |
| Collapse embedded files | Start embedded files collapsed |
<pre><code> blocks with Shiki-highlighted HTML, wrapped in a styled container with header bar and buttons.Decoration.mark styles for each token.child_process.spawn. No code is sent to any server. Output streams live over stdout/stderr pipes.MIT © Felix Leopold