MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: changing color of non-evaluatable cell


Here's an example of something like this...

ExpressionCell[Defer[1 + 1], "Input",
  Background -> Dynamic[
    Switch[CurrentValue[Evaluatable],

     True,
     Lighter@Green,

     False,
     Lighter@Red

     ]]
  ] // CellPrint


Hope this helps,

David


On Feb 1, 2:16=A0am, Makinator <luvly.jubbly.makina... at gmail.com> wrote:
> Please could someone help me,
> I would like to to set-up mathematica's notebook to automatically
> change color to some custom color, when I set this cell as non-
> evaluatable. And vice versa, when I set it to evaluatable to change
> color to default.
>
> THX



  • Prev by Date: Re: For Loop and NDSolve
  • Next by Date: Re: Mathematica And Cron
  • Previous by thread: changing color of non-evaluatable cell
  • Next by thread: Re: changing color of non-evaluatable cell