Disable Block Code execution in the editor

It would be very useful to have a toggle in the Code Block that disables the code from running on the editor.

Sometimes the logic in the written code is problematic if ran in the editor. Especially because the code is executed every time new code is written. In other cases, I’d just like to avoid the syntax errors from showing while writing code.

Thanks.