Re: Comment lines in different colour or font
- To: mathgroup at smc.vnet.net
- Subject: [mg39583] Re: Comment lines in different colour or font
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Tue, 25 Feb 2003 02:55:02 -0500 (EST)
- Organization: Universitaet Leipzig
- References: <b3a6rj$1k0$1@smc.vnet.net>
- Reply-to: kuska at informatik.uni-leipzig.de
- Sender: owner-wri-mathgroup at wolfram.com
Hi,
you can't force the Frontend to change the style atomatical
bu you can make a button that paste the color/style change
and the comment (* *) brackes into your notebook
with
Cell[BoxData[
ButtonBox[
RowBox[{"Empty", " ", "comment"}],
ButtonData:>RowBox[{StyleBox[
RowBox[ {"(", "*", "\[Placeholder]", "*", ")"}],
FontColor -> RGBColor[ 0, 0, 0.5],
FontSlant -> "Italic"],"\n"}],
ButtonStyle->"Paste"]], "Input"]
Regards
Jens
"Y.A.Tesiram" wrote:
>
> Is there any way of specifying different colours comments wrapped in (*
> comment *) ?
>
> Yas