Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2010

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

Search the Archive

Re: Strange colour highlighting in functions

  • To: mathgroup at smc.vnet.net
  • Subject: [mg112184] Re: Strange colour highlighting in functions
  • From: John Fultz <jfultz at wolfram.com>
  • Date: Sat, 4 Sep 2010 03:58:46 -0400 (EDT)

In this context, red coloring would generally indicate a potential scope
conflict (typically meaning that the same variable name is being reused by
multiple, nested scoping constructs like function declarations, Module, Block,
With).  You can determine why things are colored the way they are by using the
Help->Why the Coloring menu item when the cell is selected.

Sincerely,

John Fultz
jfultz at wolfram.com
User Interface Group
Wolfram Research, Inc.

On Fri, 3 Sep 2010 06:08:56 -0400 (EDT), Christian Schneider wrote:
> Dear MathGroup,
>
> I have a rather simple problem, but was not able to find the solution
> either in the internet nor in the Mathematica documentation.
>
> Sometimes when I define a function with
>
> f[a_,b_]:==.
>
> I find that the variables (a,b) on the right hand side of the function are
> not all shown in green and italics, which should be the standard in
> Mathematica 8 afaik, but some single ones in red and not-italics.
>
> This is especially strange since this happens sometimes  for just one "a"
> out of several "a's" in the function, with no obvious reasons.
>
> The calculations also do work without any error messages.
>
> Why is that?
>
> Kind regards,
>
> Chris



  • Prev by Date: Re: problem with RandomInteger
  • Next by Date: Re: coordinates in LogLogPlots
  • Previous by thread: Strange colour highlighting in functions
  • Next by thread: <Null> while building lists