MathGroup Archive 2012

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

Search the Archive

Re: Formatting Input cell comments

  • To: mathgroup at smc.vnet.net
  • Subject: [mg124808] Re: Formatting Input cell comments
  • From: "E. Martín-Serrano" <eMartinSerrano at telefonica.net>
  • Date: Wed, 8 Feb 2012 05:26:38 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • References: <jgo0ab$a1l$1@smc.vnet.net> <201202070859.DAA23338@smc.vnet.net>

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",   

and  

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 gmail.com] 
Enviado el: martes, 07 de febrero de 2012 10:00
Para: mathgroup at smc.vnet.net
Asunto: Re: Formatting Input cell comments

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

Appearance > Syntax Coloring > Other

--David

On Feb 6, 2:43 am, klemmeri <mmorr... at ou.edu> 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?