MathGroup Archive 2012

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

Search the Archive

Re: Formatting Input cell comments

  • To: mathgroup at
  • Subject: [mg124808] Re: Formatting Input cell comments
  • From: "E. Martín-Serrano" <eMartinSerrano at>
  • Date: Wed, 8 Feb 2012 05:26:38 -0500 (EST)
  • Delivered-to:
  • References: <jgo0ab$a1l$> <>

What if one needs different colors for comments at different parts of one
note book as to document the location of different [functional] areas. It
would be a useful documentation feature for large and complex programs.  (I
am not talking about avoiding good modular programming).

I tried applying different colors to comments by using

Format ->  Text color -> "mycolor",   


Format -> Size -> 'mysize' 

and both together (mainly for debugging purposes).

But it sometimes works or sometimes does not; and, worst, sometimes it
creates problems difficult to identify.  It seems that applying colors this
way introduces invisible characters which are, sometimes interpreted by the
parser as syntactical errors.  These errors are difficult to reverse except
by getting rid of chunks of code surrounding the colored comment. 

E. Martin-Serrano

-----Mensaje original-----
De: David Reiss [mailto:dbreiss at] 
Enviado el: martes, 07 de febrero de 2012 10:00
Para: mathgroup at
Asunto: Re: Formatting Input cell comments

In the Preferences panel (not the option inspector), go to

Appearance > Syntax Coloring > Other


On Feb 6, 2:43 am, klemmeri <mmorr... at> wrote:
> Hi - In the options inspector for a selected notebook what is the 
> option you look for to alter the format of all teh input cell comments 
> i.e. (* mmm *) in your notebook?
> Thanks much - klemmeri

  • Prev by Date: Re: Mathematica question
  • Next by Date: Re: Why does the order of down values come back?
  • Previous by thread: Re: Formatting Input cell comments
  • Next by thread: Why does the order of down values come back?