formulahendry / vscode-code-runner

Code Runner for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=formulahendry.code-runner
MIT License
2.18k stars 291 forks source link

code runner fails in markdown previews #333

Open jandrieu opened 6 years ago

jandrieu commented 6 years ago

Using VS Code 1.26.0, the code runner is unable to find code in the preview page of markdown files.

I can get it to execute code snippets from within the .md editor, but not from within the preview. The run command is not available in the context menu and if I use the command palette on selected text in the preview window, I get an error:

No code found or selected

Any help here?

formulahendry commented 6 years ago

Currently, it is not supported yet. Make it as feature request

edongashi commented 5 years ago

How difficult is this feature to implement? It would be fantastic for presentations with small snippets of examples.

SpiffGreen commented 11 months ago

I don't think think its hard to implement, I would love to jump on it though @formulahendry

How difficult is this feature to implement? It would be fantastic for presentations with small snippets of examples.