MathGroup Archive 2003

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

Search the Archive

Re: Automatic comment coloring

  • To: mathgroup at
  • Subject: [mg44607] Re: Automatic comment coloring
  • From: Paul Abbott <paul at>
  • Date: Mon, 17 Nov 2003 03:38:42 -0500 (EST)
  • Organization: The University of Western Australia
  • References: <> <bp2395$23m$>
  • Sender: owner-wri-mathgroup at

Olivier Durussel <olivier.durussel at> wrote:

>Is there a way to have the comments automaticaly colored ???
>(In the same way the "UnmatchedBracket" do)

I assume that you want to document a package? If that is the case, why 
not automatically generate your package from a Notebook in which the 
documentation can be both extensive and nicely formatted. Also, it 
allows you t break your code into understandable chunks, making your 
code easier to maintain, test, and understand. Modifying the Notebook 
StyleSheet allows you to write comments in any format that you choose.

For a nice example, see the Notebook


which (automatically) generates the Notation.m package (loaded as 
<<Utilities`Notation`), and is included with the standard distribution 
in the following directory:

  ToFileName[{$TopDirectory, "AddOns", "ExtraPackages","Utilities",    


Paul Abbott                                   Phone: +61 8 9380 2734
School of Physics, M013                         Fax: +61 8 9380 1014
The University of Western Australia      (CRICOS Provider No 00126G)         
35 Stirling Highway
Crawley WA 6009                      mailto:paul at 

  • Prev by Date: [Fwd: Re: Trigonometric math functions]
  • Next by Date: Re: use of SetDelayed functions in Plot and Solve
  • Previous by thread: Re: Automatic comment coloring
  • Next by thread: Re: Automatic comment coloring