Eren Can9 downloadsCode in your notes: detects pasted code, runs commands in the terminal, edits code files and previews HTML.
Better code in your Obsidian notes: paste code and it lands in the right code block, run commands straight from a note, edit code files with highlighting and preview HTML side by side.

Cmd/Ctrl+Shift+V pastes without detection.Cmd/Ctrl+Shift+Enter under Settings > Hotkeys). Prompts like
user@host $ and command output are stripped first. <placeholders> are filled in a
small form, and risky commands (rm -rf, reboot, kubectl delete, git push --force,
curl … | sh, DROP TABLE, terraform destroy, …) ask before running. Blocks with no
language tag always ask too..sh .go .py .yaml .json .sql .conf .log and more open in a CodeMirror
editor with highlighting, search, a read-only lock and a "run this script" button..html file and choose Preview or
Preview beside. The preview reloads when the file changes and runs in a sandboxed
frame with no access to Obsidian or your vault. Obsidian doesn't let the frame load
other vault files, so images and stylesheets next to the HTML file aren't shown; inline
<style> and data: images work. JavaScript is off by default and can be switched on
per preview; network access is a separate setting, also off by default.


Desktop only (macOS, Windows, Linux).
main.js, manifest.json and styles.css into
<your vault>/.obsidian/plugins/ecu-codekit/.The plugin itself makes no network requests. An HTML file you preview can load resources from the internet only if you turn on Allow network in HTML preview.
All of these are in the command palette and in the right-click menu of a code block: paste as code, wrap selection in a code block, change language, copy block, save block as file, unwrap block, run line / block in terminal, new code file, insert a code file into a note, preview HTML beside, toggle paste detection.
The interface is available in English and Turkish. By default it follows Obsidian's language; you can pick one under Settings > ecu-codekit > Language.
MIT, see LICENSE.