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


Groups > comp.soft-sys.math.mathematica > #8357 > unrolled thread

Formatting Input cell comments

Started byklemmeri <mmorriss@ou.edu>
First post2012-02-06 07:43 +0000
Last post2012-02-08 10:27 +0000
Articles 3 — 3 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  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

#8357 — Formatting Input cell comments

Fromklemmeri <mmorriss@ou.edu>
Date2012-02-06 07:43 +0000
SubjectFormatting Input cell comments
Message-ID<jgo0ab$a1l$1@smc.vnet.net>
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

[toc] | [next] | [standalone]


#8372

FromDavid Reiss <dbreiss@gmail.com>
Date2012-02-07 09:00 +0000
Message-ID<jgqp7m$mqd$1@smc.vnet.net>
In reply to#8357
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

[toc] | [prev] | [next] | [standalone]


#8386

From"E. Martín-Serrano" <eMartinSerrano@telefonica.net>
Date2012-02-08 10:27 +0000
Message-ID<jgtim5$682$1@smc.vnet.net>
In reply to#8357
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


[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web