MathGroup Archive 2009

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

Search the Archive

Re: Replacing notebook symbols with colored text

  • To: mathgroup at smc.vnet.net
  • Subject: [mg105585] Re: Replacing notebook symbols with colored text
  • From: magma <maderri2 at gmail.com>
  • Date: Thu, 10 Dec 2009 04:56:17 -0500 (EST)
  • References: <hfdcqn$8ar$1@smc.vnet.net>

On Dec 5, 11:31 am, "Stewart Bodzin" <Stewart.Bod... at usa.net> wrote:
> Sometimes it is necessary to find and replace a symbol with a new symbol
> name.  The color of the text of the symbol may be set to something othe=
r
> than black and when doing a find and replace, the replacement is always
> black.  
>
> Is there a way to change the text color of all occurrences of a specific
> symbol in a notebook?  
>
> (The notebook preferences settings for colors are not specific for an
> individual symbol but only for a class of symbols and will not solve this
> issue.)
>
> Any help would be greatly appreciated.

Mathematica colours symbols according to the syntax colouring rules
which you can set in the preferences panel under the Edit menu.
You cannot and should not use arbitrary colouring of symbols when
coding with Mathematica.
If you use find and replace to replace a symbol, the new symbol can
have a different color because it could have been evaluated already in
the same session. Evaluated symbols are black by default.
In any case Mathematica colours symbols based on the semantics, not based on
arbitrary aesthetics.


  • Prev by Date: Re: Play Command Error
  • Next by Date: CVS Install on Windows XP for Workbench
  • Previous by thread: Re: Replacing notebook symbols with colored text
  • Next by thread: Newbie Qn: Change Directory