Closed hugetim closed 2 years ago
That's an interesting suggestion. I tried the code after replacing the tabspace with whitespace, and I see two issues:
\\\
but not #delimit ;
. It appears that the latter is not permitted inside program definition, so another solution will be needed for that.program define
.Wow, thank you for testing it out so quickly. I don't see any immediate way around those issues, which probably outweigh the benefit. But perhaps we could instead add a magic with this functionality? Something like *%no_echo
at the top of a block? (I've never coded a magic myself, though.)
Addresses #4
Looking for a simple way to suppress echo of commands for multi-command code blocks, I discovered a workaround:
program
definition, andecho
=False).This seems to give the desired result, displaying any output without echoing the commands.