Re: "Skip this Input cell" module?
- To: mathgroup at smc.vnet.net
- Subject: [mg68774] Re: "Skip this Input cell" module?
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Fri, 18 Aug 2006 03:12:26 -0400 (EDT)
- References: <firstname.lastname@example.org>
- Sender: owner-wri-mathgroup at wolfram.com
Hi, this sound very complicated but may be skipThis /: CompoundExpression[skipThis, a___] := Hold[ CompoundExpression[a]] will help you and it is more complicated than change the type of the "Input" cells into "Text" ... or to create your own cell style that can not evaluated ... and switch the cell style of that cells to that style ... Regards Jens AES wrote: > 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; > > as the first line in any subsequent Input cell in the notebook, the > remainder of that Input cell will be skipped, i.e. not executed -- > without your having to wrap the remainder of the cell in an explicit > If[ ] statement or similar coding. > > Or, an inputOff statement such that > > inputOff; > > as the first line of any Input cell will turn off execution of any > subsequent Input cells (and perhaps the remainder of the cell containing > the statement), until an Input cell beginning with > > inputOn > > is encountered. > > [I trust the utility of these will be reasonably obvious . . . ] >