Re: Colorizing

"D. D. Brierton" <[email protected]>
Newsgroups gmane.emacs.psgml.user
Organization DZR Website Development
Message-ID <[email protected]>
On Wed, 2002-11-27 at 22:40, Peter Flynn wrote:
> I don't understand the problem. Syntactic fontification (colorizing)
> I thought is ALREADY IN the major modes (psgml, xxml, xslide, etc).
> 
> Maybe the OP's question was really "how do I turn it on", not
> "has anyone ever implemented it". In fact, looking at the wording
> "when colorizing will work" (aside from the inversion) I think
> the answer is actually:
> 
> Add the following to your .emacs file:
> 
>               (require 'font-lock)
>               (global-font-lock-mode t)
> 	     (setq font-lock-maximum-decoration t)
> 	     (turn-on-font-lock)
> 
> I can't guarantee it will work because I don't understand Elisp,
> but that's what's in my .emacs, and I get color.

Oh, perhaps that was what the OP meant. The bit that caught my attention
though was when he said:

>   The only thing which is REALLY needed is
>   different colors for elements and  attributes.

I took it to be a request for more complex syntax colourisation, which
does seem to be an oft requested feature. I've tried using xxml in
conjunction with psgml in order to get element names and attribute names
and values differently highlighted but I found the results somewhat
unpredictable: some psgml features that I was used to using would
unpredictably work in unexpected ways. I can't remember what they were
off the top of my head - perhaps I should try again and produce some
accurate bug reports.

Best, Darren

-- 
======================================================================
D. D. Brierton            [email protected]           www.dzr-web.com
       Trying is the first step towards failure (Homer Simpson)
======================================================================


-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
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.