Re: Loading local version of psgml turns of syntax coloring

Ville Skyttä <[email protected]>
Newsgroups gmane.emacs.psgml.user
Message-ID <[email protected]>
On Mon, 2002-09-23 at 10:04, Fischer, Oliver wrote:

> since I have installed 1.2.5 in addition to the standard psgml
> version of Xemacs, syntax highlighting doesn't work for XML any longer.
> 
> I load the version 1.2.5 by putting the path to 1.2.5 in the first
> position of the load-path :
[...]
> Later I turn syntax highlighting on via:
> 
>    (custom-set-variables
>    '(paren-mode (quote paren) nil (paren))
>    '(font-lock-maximum-decoration t)
>    '(font-lock-use-colors t)
>    '(font-lock-use-fonts nil)
>    '(font-lock-mode t))

AFAICT, the official psgml doesn't use font-lock at all.  The version
distributed with XEmacs basically sets HTML (!) font-lock defaults into
use for xml-mode [1].

To enable psgml's built-in syntax highlighting, you'll need to have a
DTD declared in your XML and available for psgml.  And have
sgml-auto-activate-dtd set to t.  Someone please correct if I'm wrong.

[1] Yes, I know, Baaaaad.  We're working on a better solution.  (I've
been told that without the current "solution", we used to get a *lot* of
bug reports about syntax highlighting not working in xml-mode...)

HTH,
-- 
\/ille Skyttä
ville.skytta at xemacs.org



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.