MathGroup Archive 2007

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

Search the Archive

Re: v.6 Editing Stylesheets

  • To: mathgroup at smc.vnet.net
  • Subject: [mg76355] Re: v.6 Editing Stylesheets
  • From: Helen Read <hpr at together.net>
  • Date: Sun, 20 May 2007 02:31:31 -0400 (EDT)
  • References: <f2mejq$m3s$1@smc.vnet.net>
  • Reply-to: HPR <read at math.uvm.edu>

Lev Bishop wrote:
> 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).

Thanks. I ended up just changing it in the Preferences, and gave up on 
setting it in the stylesheet.

-- 
Helen Read
University of Vermont


  • Prev by Date: Re: Number of Differing Digits & Another Problem (want to see different
  • Next by Date: Re: Minimize[] Problem
  • Previous by thread: Re: v.6 Editing Stylesheets
  • Next by thread: Phase Portrait