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

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

Re: Font locking in PSGML mode


From: Kai Großjohann
Subject: Re: Font locking in PSGML mode
Date: Wed, 12 Mar 2003 10:30:39 +0100
User-agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.3.50 (gnu/linux)

chris <chrisl_ak@hotmail.com> 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.


reply via email to

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