Mathematica 9 is now available
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: Customising syntax colouring

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

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.

Szabolcs


  • 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