🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text.sgml
Article #756

Re: PSGML w\XML support - syntax colouring?

#756
From: Lennart Staflin
Date: Wed, 27 May 1998 00:00
22 lines
1734 bytes
paul.groves@oucs.ox.ac.uk (Paul Groves) writes:

> Does anyone have any tips and\or elisp code to get David Megginson's
> XML patch for PSGML (an SGML major mode for Emacs) to syntax colour
> tags when in *XML-mode*. In SGML-mode the font-faces defined (e.g. red
> tags, green DTD declarations etc.) in my .emacs file work fine, but in
> XML mode I get no colouring at all (but I do get all the other PSGML
> features).

PSGML only starts parsing and colouring the file when loaded if the
file starts with a '<'. But it would do it later when you use one of
the structure dependent features. (Perhaps that is what Kai
Grossjohann is experiencing in another follow up [1]?)

I have made some changes to David's changes. They are not quite ready
yet but a prerelease is in <ftp://ftp.lysator.liu.se/pub/sgml/ALPHA/>.


[1] <vafemxhjaz8.fsf@ramses.cs.uni-dortmund.de>
-- 
Lennart Staflin <lenst@lysator.liu.se>        /*/         (:ABSOLUTE :WILD)
Technical Details
Message-ID: <m2k978qnnt.fsf@triton.lstaflin.pp.se>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <356ada45.451127207@news.ox.ac.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fa82c,e14601e24d87f01c
X-Google-Attributes: gidfa82c,public
X-Google-Thread: 102b9a,e14601e24d87f01c
X-Google-Attributes: gid102b9a,public
X-Google-Thread: 103b8b,e14601e24d87f01c
X-Google-Attributes: gid103b8b,public
From: Lennart Staflin <lenst@lysator.liu.se>
Subject: Re: PSGML w\XML support - syntax colouring?
Date: 1998/05/27
Message-ID: <m2k978qnnt.fsf@triton.lstaflin.pp.se>
X-Deja-AN: 357942200
Sender: lenst@triton.lstaflin.pp.se
References: <356ada45.451127207@news.ox.ac.uk>
Followup-To: gnu.emacs.help
Content-Type: text/plain; charset=US-ASCII
Organization: Cons unlimited.
Mime-Version: 1.0 (generated by tm-edit 7.106)
Newsgroups: comp.text.sgml,comp.emacs,gnu.emacs.help