Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2003
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2003

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

Search the Archive

Re: Re: Comment lines in different colour or font

  • To: mathgroup at smc.vnet.net
  • Subject: [mg39600] Re: [mg39580] Re: Comment lines in different colour or font
  • From: Tomas Garza <tgarza01 at prodigy.net.mx>
  • Date: Tue, 25 Feb 2003 02:57:24 -0500 (EST)
  • References: <b3a6rj$1k0$1@smc.vnet.net> <200302240811.DAA08178@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Certainly possible. Suppose, e.g.

In[1]:=
f[h_] := Module[{t}, t = 4*h + 2 (* This is a comment*)]

Select the text from (* to *) and then Format | Text Color | Red. The
selected text will appear in red. Just make sure you don't convert the cell
to InputForm or any other, for the comment will disappear. Why? I don't
know.

Tomas Garza
Mexico City
----- Original Message -----
From: "AES/newspost" <siegman at stanford.edu>
To: mathgroup at smc.vnet.net
Subject: [mg39600] [mg39580] Re: Comment lines in different colour or font


> In article <b3a6rj$1k0$1 at smc.vnet.net>,
>  "Y.A.Tesiram" <yas at pcomm.hfi.unimelb.edu.au> wrote:
>
> > Is there any way of specifying different colours comments wrapped in (*
> > comment *)  ?
>
> I would love something like this, e.g., as a way of highlighting comment
> or seporator lines within Modules.
>
> --
> "Power tends to corrupt.  Absolute power corrupts absolutely."
> Lord Acton (1834-1902)
> "Dependence on advertising tends to corrupt.  Total dependence on
> advertising  corrupts totally." (today's equivalent)
>
>




  • Prev by Date: Re: Re: Cursors in graphics
  • Next by Date: RE: plot help
  • Previous by thread: Re: Comment lines in different colour or font
  • Next by thread: Re: Comment lines in different colour or font