MathGroup Archive 2007

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

Search the Archive

Re: Customising syntax colouring

  • To: mathgroup at
  • Subject: [mg77456] Re: Customising syntax colouring
  • From: Szabolcs <szhorvat at>
  • Date: Sat, 9 Jun 2007 05:32:53 -0400 (EDT)
  • Organization: University of Bergen
  • References: <f48dvm$c7v$>

Andrew Moylan wrote:
> The new syntax colouring in version 6 is great. Is it readily
> customisable? Here's an arbitrary hypothetical example: Suppose I
> wanted all input of the form f[_] to be automatically coloured
> Darker[Green]. Is this easy?
> I'm not sure if I've read about this before in the documentation; at
> any rate, I can't find it now. As a side question: I'm having some
> trouble getting accustomed to the new documentation interface. Any
> crucial tips on using it efficiently?

About the documentation: I agree with you completely.  Having no table 
of contents and never knowing your exact position in the documentation 
is awful.  A good master index and TOC cannot be replaced with some 
fuzzy search feature ... this is good for wikis, gmail etc. where manual 
organisation of information is not practical, but surely WRI can afford 
to create a usable index and table of contents.

About the syntax colouring:

Look up SyntaxInformation[].  It does not allow for completely arbitrary 
colouring, but it is still very useful.


  • Prev by Date: Re: Unable to copy graphics from Mathematica 6 to Publicon
  • Next by Date: Re: 6.0 Standard Packages?, New Style Documentation?
  • Previous by thread: Re: Customising syntax colouring
  • Next by thread: PolyLogs