MathGroup Archive 2010

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

Search the Archive

Re: Syntax coloring

  • To: mathgroup at
  • Subject: [mg111885] Re: Syntax coloring
  • From: "J. Batista" <jbatista800 at>
  • Date: Tue, 17 Aug 2010 01:20:45 -0400 (EDT)

 Themis, I tried analyzing the behavior noted from the code you provided and
 found similar results.  The semicolon does change appearance from black to
 magenta upon adding the comment.  The addition of whitespace directly after
 the comment, by simply pressing the spacebar, also returns the appearance of
 the semicolon in question to black (in addition to your previously stated
 method of removing and retyping the final semicolon).  I have observed this
 while running Mathematica 7.0.1 within a Windows environment.

 However, looking at the same case using Mathematica 5.2 within Windows
 yields different results.  The addition of the comment does not result in
 the semicolon's color changing.  This may indicate the emergence of a bug
 somewhere between versions 5.2 and 7.

 J. Batista

   On Fri, Aug 13, 2010 at 6:58 AM, Themis Matsoukas <tmatsoukas at>wrote:

> If I change this:
> If[a > 1,
>  Do[Print[i], {i, 1, 10}];
>  ];
> to this:
> If[a > 1,
>  Do[Print[i], {i, 1, 10}]; (*end do*)
>  ];
> then, the semicolon right before the comment (*end do*) turns magenta.
> But if I remove the very LAST semicolon and then type it again, the
> magenta turns black.
> Do others see this behavior?
> "7.0 for Mac OS X x86 (64-bit) (November 11, 2008)"
> Themis

  • Prev by Date: Re: 2 issues with Mathematica-data handling
  • Next by Date: Re: in a loop
  • Previous by thread: Re: Syntax coloring
  • Next by thread: Equation style crash bug