[Date Index] [Thread Index] [Author Index]
Re: "Skip this Input cell" module?
Hi, > How about a module or command called, say, "skipThis" that's defined in > the opening cells of a notebook, such that if you put > > skipThis; I think there is no need for such a package: Are you aware of the Cell-Option Evaluatable? If you set this to False (e.g. with the option inspector or Cell -> Cell Properties -> Cell Evaluatable) you can achieve what you want without writing extra code into your cells. You will see that the cell brackets look slightly different for cells that are not Evaluatable. I think this is the recommended way to achieve what you want. If you think that changing the cell property Evaluatable via option-inspector or Cell -> CellProperties is too complicated you might want to automate that, e.g. by constructing a palette that will toggle this setting for the selected cells. Another approach that I probably would use is to define a stylesheet which has a style UnevaluatableInput which is just like Input but will have Evaluatable set to False an maybe change the layout of those cells so you don't have to search for differences in cell brackets. Then you can change the cell style, which can be done easily by keyboard-shortcuts. hth, albert