Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #8386

Re: Formatting Input cell comments

From "E. Martín-Serrano" <eMartinSerrano@telefonica.net>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Formatting Input cell comments
Date 2012-02-08 10:27 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jgtim5$682$1@smc.vnet.net> (permalink)
References <jgo0ab$a1l$1@smc.vnet.net> <201202070859.DAA23338@smc.vnet.net>

Show all headers | View raw


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@gmail.com] 
Enviado el: martes, 07 de febrero de 2012 10:00
Para: mathgroup@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...@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


Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Formatting Input cell comments klemmeri <mmorriss@ou.edu> - 2012-02-06 07:43 +0000
  Re: Formatting Input cell comments David Reiss <dbreiss@gmail.com> - 2012-02-07 09:00 +0000
  Re: Formatting Input cell comments "E. Martín-Serrano" <eMartinSerrano@telefonica.net> - 2012-02-08 10:27 +0000

csiph-web