Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Optionally disable execution #381

Open
MathiasSven opened this issue Oct 9, 2024 · 1 comment
Open

[FEATURE] Optionally disable execution #381

MathiasSven opened this issue Oct 9, 2024 · 1 comment
Labels
features request Request for a new feature.

Comments

@MathiasSven
Copy link

Is your feature request related to a problem? Please describe.
I have accumulated multiple code blocks in my notes, but some code blocks are not meant to be run, just viewed. Running them might simply just produce an error, or might end up creating needless files, change user configurations, and alter state I didn't mean to. Usually for me, it is obvious which code blocks are meant to be run because I tend to add a bunch of echo's or logging facilities, but it would be nice if this guesswork wasn't there.

Describe the solution you'd like
Add a way to disable the rendering of the Run button based on something like this:

```norun-python

or

```python {active=false}

where {active=true} by default

Describe alternatives you've considered
Removing the language next to backticks, but that removes syntax highlighting.

@MathiasSven MathiasSven added the features request Request for a new feature. label Oct 9, 2024
@sbhal
Copy link

sbhal commented Nov 19, 2024

An alternative could be live preview mode which doesn't show Run button with language next to backticks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
features request Request for a new feature.
Projects
None yet
Development

No branches or pull requests

2 participants