Re: "Skip this Input cell" module?
- To: mathgroup at smc.vnet.net
- Subject: [mg68761] Re: "Skip this Input cell" module?
- From: albert <awnl at arcor.de>
- Date: Fri, 18 Aug 2006 03:12:05 -0400 (EDT)
- References: <firstname.lastname@example.org>
- Sender: owner-wri-mathgroup at wolfram.com
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