Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

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

Search the Archive

Re: v.6 Editing Stylesheets

  • To: mathgroup at smc.vnet.net
  • Subject: [mg76301] Re: v.6 Editing Stylesheets
  • From: "Lev Bishop" <lev.bishop+mathgroup at gmail.com>
  • Date: Sat, 19 May 2007 04:40:27 -0400 (EDT)

Helen Read wrote:
> I tried adding a style for it, but
> it doesn't work. UnmatchedBrackets in the notebook I'm working in
> continue to be that purply color defined in core.nb, which (to my eyes)
> doesn't stand out enough.

The v6 way to change the bracket colour is the "Syntax Errors" setting
on the Edit->Preferences->Appearance->Syntax Coloring->Errors and
Warnings.

If you want to keep using your old stylesheets to set the colour, you
can do this by setting "SyntaxErrorStyle"->{"UnmatchedBracket"} or
whatever other style you want to use (this is the same setting that is
modified by the preferences dialog, just you can give a style this way
rather than just a colour.

If your brackets aren't being highlighted at all, check that you have all 3 of:
"HighlightSyntaxErrors"->True
ShowAutoStyles->True
ShowSyntaxStyles->True

Be aware that the frontend doesn't seem to be very good at tracking
changes to the "UnmatchedBracket" style. Sometimes I have to restart
the frontend before it notices a change to the stylesheet (it sees it
if I put some text in explicit "UnmatchedBracket" style, just it
doesn't use it for it's syntax highlighting until I restart).

Lev


  • Prev by Date: Re: Help in changing the vertical axis tick label format
  • Next by Date: Re: Re: Phase Portrait
  • Previous by thread: v.6 Editing Stylesheets
  • Next by thread: Re: v.6 Editing Stylesheets