[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Indentation problems in SGML mode
From: |
Kai Großjohann |
Subject: |
Re: Indentation problems in SGML mode |
Date: |
Thu, 15 May 2003 10:35:48 +0200 |
User-agent: |
Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) |
Peter Lee <pete_lee@swbell.net> writes:
> When I open an xml file it is initially not fontified. However if I
> select a region and do C-M-\ it then fontifies.
That's because PSGML uses its own fontification mechanism, and avoids
font-lock. PSGML does fontification lazily, in a way, so it only
fontifies things that you change. You can also go to a line
and hit TAB -- then it will fontify everything up to that line.
When PSGML was written, font-lock was probably not powerful enough for
proper SGML font-locking: you can change the < and > characters in
SGML, so regular expressions don't work.
--
This line is not blank.