Re: Automatic comment coloring

*To*: mathgroup at smc.vnet.net*Subject*: [mg44607] Re: Automatic comment coloring*From*: Paul Abbott <paul at physics.uwa.edu.au>*Date*: Mon, 17 Nov 2003 03:38:42 -0500 (EST)*Organization*: The University of Western Australia*References*: <200311121301.IAA12548@smc.vnet.net> <bp2395$23m$1@smc.vnet.net>*Sender*: owner-wri-mathgroup at wolfram.com

Olivier Durussel <olivier.durussel at epfl.ch> 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 NotationSource.nb 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", "Documentation","English"}] Cheers, Paul -- 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 physics.uwa.edu.au AUSTRALIA http://physics.uwa.edu.au/~paul

**References**:**Automatic comment coloring***From:*"Olivier Durussel" <olivier.durussel@epfl.ch>