CSharp Snippet Runner

by ohm-engineering
5
4
3
2
1
Score: 35/100
New Plugin

Description

This plugin has not been manually reviewed by Obsidian staff. Run C# code blocks in Obsidian using an auto-installed CSharpRepl runtime.

Reviews

No reviews yet.

Stats

stars
8
downloads
0
forks
0
days
NaN
days
NaN
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
0
total issues
0
open issues
0
closed issues
0
commits

Latest Version

Invalid date

Changelog

README file from

Github

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