help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Highlight comment in gauss mode


From: address@hidden
Subject: Re: Highlight comment in gauss mode
Date: 8 Jan 2004 13:30:59 -0800

Thank you very much. The format is correct now but the comment areas
do not change the color though font-lock-mode is on. Could you kindly
tell me what lisp algorithm I should add to change the comment color.
Any help is highly appreciated.

James

Stefan Monnier <monnier@iro.umontreal.ca> wrote in message 
news:<jwv1xqb3hjl.fsf-monnier+gnu.emacs.help@asado.iro.umontreal.ca>...
> > @ foo 
> > is not valid Gauss. The valid Gauss comments are
>  
> > /* this kind of comment can be nested */ 
>  
> > @ this kind of comment cannot be nested @ 
> 
> Oh, so it's not a question of whether the closing @ is on the same line but
> of nesting.  Good.
> 
> Then you want to add "n" to the syntax of "*" (to cause /* */ to be
> nestable) and you want to use "!" (instead of "\"") for for syntax of @.
> 
> > For example, the followings are valid gauss comment:
>  
> > Case 1:
> > /* foo1
> >   /* foo2 */
> > */
>  
> > Case 2:
> > @ foo2@
>  
> > Case 3:
>  
> > @ foo3
> > @
> 
> With my suggestions above, all three should work just fine in Emacs-21.
> 
> > I just want to see the colors are different in comment areas.
> 
> What have you tried to do to make it happen ?
> Have you turned on font-lock-mode ?
> 
> 
>         Stefan


reply via email to

[Prev in Thread] Current Thread [Next in Thread]