Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Join the community
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

CodeSuite

felixleopoldfelixleopold20 downloads

VS 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.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates2

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).

Features

Syntax Highlighting

  • 65+ built-in themes: Gruvbox, Catppuccin, Dracula, Nord, Tokyo Night, One Dark Pro, GitHub, Material, and many more
  • Import VS Code themes: load any .json color theme from VS Code
  • Editor highlighting: full Shiki-powered tokens in live preview and source mode via a CM6 ViewPlugin
  • 36 languages: Python, JS/TS, Rust, Go, C/C++, Java, Ruby, and more with common aliases (py, js, sh, etc.)
  • Dynamic theme colors: code block chrome (headers, borders, output panels) automatically adapts to match the selected theme

Code Execution

  • Run code from Obsidian: execute Python, JavaScript, TypeScript, Bash, Ruby, Go, Lua, Perl, PHP, R, and Swift directly from code blocks
  • Live streaming output: stdout and stderr stream in real-time
  • Smart stdin: input bar appears only when your code reads from stdin (detects input(), process.stdin, read, etc.)
  • Matplotlib & Plotly support: graphs render inline as images
  • Execution timeout: configurable auto-kill for runaway processes
  • Custom interpreter paths: set Python virtualenvs, custom Node paths, extra environment variables

Embedded Code Files

  • Render ![[file.py]] embeds as fully highlighted code blocks
  • Collapsible by default: long files show collapsed with a line count; click to expand
  • Copy & Run buttons on embedded files

UI

  • Header bar with language label, Copy, and Run buttons
  • Line numbers with hover highlight
  • Wide code blocks option for more horizontal space
  • Mobile-friendly responsive layout

Installation

From Obsidian Community Plugins

Status: 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.

  1. Open Settings → Community Plugins → Browse
  2. Search for "CodeSuite"
  3. Click Install, then Enable

Manual

  1. Download main.js, manifest.json, and styles.css from the latest release
  2. Create a folder code-suite in your vault's .obsidian/plugins/ directory
  3. Place the three files inside it
  4. Restart Obsidian and enable "CodeSuite" in Community Plugins

Build from Source

git clone https://github.com/felixleopold/obsidian-code-suite.git
cd obsidian-code-suite
npm install
npm run build

Output: dist/main.js

Configuration

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

How It Works

  • Reading view: A Markdown post-processor replaces <pre><code> blocks with Shiki-highlighted HTML, wrapped in a styled container with header bar and buttons.
  • Editor (live preview / source): A CodeMirror 6 ViewPlugin scans the document for code fences, tokenizes them with Shiki, and applies inline Decoration.mark styles for each token.
  • Code execution: Runs locally on your machine via child_process.spawn. No code is sent to any server. Output streams live over stdout/stderr pipes.

Credits

  • Shiki: syntax highlighting engine (MIT)
  • Obsidian: the app this plugin is built for
  • CodeMirror 6: editor framework used by Obsidian

License

MIT © Felix Leopold

79%
HealthExcellent
ReviewCaution
About
Render VS Code–quality syntax highlighting in reader and editor using Shiki, with 65+ built‑in themes, importable VS Code .json themes, and support for 36 languages. Execute code from blocks (Python, JS/TS, Bash, Go, Ruby, etc.) with live stdout/stderr streaming, smart stdin detection, Matplotlib/Plotly inline graphs, and Copy & Run controls; embedded files render as collapsible, fully highlighted blocks.
CodeSyntaxLanguages
Details
Current version
1.0.1
Last updated
8 hours ago
Created
2 months ago
Updates
2 releases
Downloads
20
Compatible with
Obsidian 1.5.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
felixleopoldfelixleopold
github.com/felixleopold
GitHubfelixleopold
  1. Community
  2. Plugins
  3. Code
  4. CodeSuite

Related plugins

VSCode Editor

Edit Code Files like VSCode.

Shiki Highlighter

Highlight code blocks with Shiki.

GDScript Syntax Highlighting

Add live GDScript syntax highlighting to code block.

ruby.wasm

Run ruby code in your notes using WebAssembly.

Execute Code

Execute code snippets within a note.

Code Editor

Edit non-markdown text files (code, config, data) directly with syntax highlighting, line numbers, and word wrap.

Templater

Create and use dynamic templates.

Simplified Chinese Word Splitting

Adds Simplified Chinese word splitting support for the editor and Vim mode.

PlantUML

Generate PlantUML diagrams.

Kroki

Render Kroki diagrams.