From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: jyangstat@yahoo.com (jyangstat@yahoo.com) Newsgroups: gmane.emacs.help Subject: Re: Highlight comment in gauss mode Date: 8 Jan 2004 13:30:59 -0800 Organization: http://groups.google.com Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <65ef16d2.0401081330.7cb1d74c@posting.google.com> References: <65ef16d2.0401060700.3a9f8a6a@posting.google.com> <65ef16d2.0401061620.4d7247db@posting.google.com> <65ef16d2.0401070533.2dee844@posting.google.com> NNTP-Posting-Host: deer.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1073598348 18750 80.91.224.253 (8 Jan 2004 21:45:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 8 Jan 2004 21:45:48 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 08 22:45:39 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AehyE-0001dc-01 for ; Thu, 08 Jan 2004 22:45:38 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AeiuL-0004NU-FC for geh-help-gnu-emacs@m.gmane.org; Thu, 08 Jan 2004 17:45:41 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!postnews1.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 45 Original-NNTP-Posting-Host: 150.198.138.127 Original-X-Trace: posting.google.com 1073597460 30246 127.0.0.1 (8 Jan 2004 21:31:00 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 8 Jan 2004 21:31:00 +0000 (UTC) Original-Xref: shelby.stanford.edu gnu.emacs.help:119885 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:15821 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:15821 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 wrote in message news:... > > @ 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