-
Notifications
You must be signed in to change notification settings - Fork 563
Open
Description
Is your feature request related to a problem? Please describe.
- We have to maintain two exact copies of the code (md and cs) at the moment. Or else when the markdown is displayed without
try, the code snippet is missing. - If I have many code snippets to show off, I need separate regions in the .cs file for each one, each in their own method. With all these snippets in different places, which one is "running" the sample from the web page supposed to execute?
Describe the solution you'd like
Let me just define one very small .cs file with almost nothing but an empty method and a region inside it. Then create dozens of samples in my .md files where the code actually appears in those code fenced areas. Then try verify will confirm that that code works when pasted into the .cs file, and try will actually life that code from the .md into the .cs file and execute it.
This also solves the problem of standard markdown rendering (like GitHub) not showing any code. It will always show the code. But with the right host, that code will be interactive!
Metadata
Metadata
Assignees
Labels
No labels