From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: kai.grossjohann@uni-duisburg.de (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.help Subject: Re: Font locking in PSGML mode Date: Wed, 12 Mar 2003 10:30:39 +0100 Organization: University of Duisburg, Germany Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <84wuj5szi8.fsf@lucy.is.informatik.uni-duisburg.de> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1047462038 23362 80.91.224.249 (12 Mar 2003 09:40:38 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 12 Mar 2003 09:40:38 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 12 10:40:35 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18t2ix-00064R-00 for ; Wed, 12 Mar 2003 10:40:35 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18t2do-00024e-01 for gnu-help-gnu-emacs@m.gmane.org; Wed, 12 Mar 2003 04:35:16 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!pd951fdcc.dip.t-dialin.NET!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 23 Original-NNTP-Posting-Host: pd951fdcc.dip.t-dialin.net (217.81.253.204) Original-X-Trace: fu-berlin.de 1047461452 68128133 217.81.253.204 (16 [73968]) User-Agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:dcZdWtZ2vY984zpBMX0XvqiGE5Q= Original-Xref: shelby.stanford.edu gnu.emacs.help:111001 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:7501 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:7501 chris writes: > When I load a file into Emacs that starts sgml mode, there is no > syntax coloring. After I parse the DTD, the font coloring starts > working, but only on text that I manually move my cursor through. As I > move through each element, it becomes colorized. > > Is there a way to get this to happen automatically? I have the > following in my .emacs Note that psgml does NOT use font-lock for its syntax highlighting. This is because it is difficult to design regular expressions that do the right thing: with the right SGML declaration, you can tell the system to use different characters instead of "<" and ">", for example. But I've been using xxml.el for XML sources. I think xxml.el uses font-lock. (But I haven't looked.) xxml.el works for HTML, too. So I think as long as your SGML files use the normal pointy brackets syntax and the SGML declaration doesn't do weird things, you should be fine. -- A preposition is not a good thing to end a sentence with.