No description
Find a file
2026-05-29 12:05:07 +02:00
.github/workflows Add artifact attestations 2026-05-29 11:41:57 +02:00
src First working version. Add workflow to release 2026-05-29 10:42:22 +02:00
.editorconfig Initial commit 2026-05-28 16:12:18 +02:00
.gitignore First working version. Add workflow to release 2026-05-29 10:42:22 +02:00
.npmrc Initial commit 2026-05-28 16:12:18 +02:00
AGENTS.md Initial commit 2026-05-28 16:12:18 +02:00
CONTRIBUTING.md First working version. Add workflow to release 2026-05-29 10:42:22 +02:00
esbuild.config.mjs Initial commit 2026-05-28 16:12:18 +02:00
eslint.config.mts Initial commit 2026-05-28 16:12:18 +02:00
LICENSE Update LICENSE 2026-05-29 12:05:07 +02:00
manifest.json Bump version from 1.0.2 to 1.0.3 2026-05-29 11:44:03 +02:00
package-lock.json First working version. Add workflow to release 2026-05-29 10:42:22 +02:00
package.json Remove obsidian from plugin ID 2026-05-29 10:51:56 +02:00
README.md Update README.md 2026-05-29 11:09:59 +02:00
styles.css First working version. Add workflow to release 2026-05-29 10:42:22 +02:00
tsconfig.json Initial commit 2026-05-28 16:12:18 +02:00
version-bump.mjs Initial commit 2026-05-28 16:12:18 +02:00
versions.json Initial commit 2026-05-28 16:12:18 +02:00

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, .net and dotnet
  • Adds a Run button below each block with one of the above tags
  • Runs snippets using bundled CSharpRepl auto-installed with dotnet tool into the plugin folder
  • Supports optional script arguments
  • Saves output and arguments per snippet in the plugin responses folder
  • 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.js
  • manifest.json
  • styles.css