Lately, my installation of Mathematica has decided not to highlight any symbols loaded from packages. The picture below is a good representation of this:
where after loading both PhysicalConstants`
and Units`
BohrRadius
, Meter
, and Angstrom
should all be black. Yet, they retain their "unknown symbol" color. This occurs for all packages and is persistent across restarting the front-end and rebooting the entire system. Any suggestions for correcting this?
I am running the student version of 8.0.4 on MacOS 10.6.8.
Answer
I don't know what is causing your problem, but presumably you can still specially color the symbols in those contexts as I do. For example:
SetOptions[$FrontEnd,
AutoStyleOptions -> {"SymbolContextStyles" ->
{"Units`" -> Brown, "PhysicalConstants`" -> Orange}
}
]
Since the above suggestion doesn't have effect on your machine even when you deselect highlighting of "Global symbols that have no value assigned" in the Preferences dialog, it sounds like something is really broken. Obviously backing things up first, try deleting the user configuration files.
Comments
Post a Comment