Skip to content

Hide clode blocks? #232

Open
Open
@mtiller-jh

Description

I am aware that if I add #hide to the end of a line of Julia code, that line is executed but not rendered. I'm also aware that if I have a block of code and I want to execute it but not render it, I can also prepend #hide to each line.

But it is inconvenient to apply these changes to each line. VS Code, for example, can comment and uncomment lines but not (that I am aware) with an additional bit of text. So if I uncomment all these lines with #hide at the start, I just get a bunch of Julia code with the token hide on each line. So toggling back and forth isn't so easy.

I looked through the documentation and I didn't see any way to fence an entire chunk of code in this way. Something along the lines of:

#begin hide
Some Julia code I want to run, but not show
potentially spanning
many,
many 
lines
#end hide 

But I just wanted to check here to see if I was missing anything (or perhaps some other way to achieve the same result).

Thanks.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions