mirror of
https://github.com/ohm-engineering/obsidian-csharp-interactive.git
synced 2026-07-22 07:24:31 +00:00
No description
| .github/workflows | ||
| src | ||
| .editorconfig | ||
| .gitignore | ||
| .npmrc | ||
| AGENTS.md | ||
| CONTRIBUTING.md | ||
| esbuild.config.mjs | ||
| eslint.config.mts | ||
| LICENSE | ||
| manifest.json | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| styles.css | ||
| tsconfig.json | ||
| version-bump.mjs | ||
| versions.json | ||
CSharp Snippet Runner
Obsidian plugin that adds a run button to C# code blocks. It uses CSharpRepl to execute the snippets and displays the output directly in the note.
Features
- Supports code blocks containing C# code with tags
csharp,cs,c#,net,.netanddotnet - Adds a Run button below each block with one of the above tags
- Runs snippets using bundled CSharpRepl auto-installed with
dotnet toolinto the plugin folder - Supports optional script arguments
- Saves output and arguments per snippet in the plugin
responsesfolder - Restores saved output/arguments when notes are rendered
Development
npm install
npm run dev
Build
npm run build
Manual installation
Copy these files to:
<Vault>/.obsidian/plugins/csharp-snippet-runner/
main.jsmanifest.jsonstyles.css