OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   PSGML, XML, and sgml-set-face

[ Lists Home | Date Index | Thread Index ]
  • From: David Megginson <ak117@freenet.carleton.ca>
  • To: "Glenn R. Kronschnabl" <grk@arlut.utexas.edu>
  • Date: Wed, 21 Jan 1998 19:59:14 -0500

Glenn R. Kronschnabl writes:

 > Anyone using faces with DM's XML mods to PSGML?
 > 
 > I can get hilighting to work with .sgml files ok,
 > but not with .xml files.
 > 
 > If someone has it working, can they be kind of
 > enough to e-mail or post?

Do you use the sgml-markup-faces variable?  Here's how I set it:

(setq-default sgml-markup-faces
 '((comment . sgml-comment-face)
   (doctype . sgml-doctype-face)
   (end-tag . sgml-end-tag-face)
   (entity . sgml-entity-face)
   (ignored . sgml-ignored-face)
   (ms-end . sgml-ms-end-face)
   (ms-start . sgml-ms-start-face)
   (pi . sgml-pi-face)
   (sgml . sgml-sgml-face)
   (short-ref . sgml-short-ref-face)
   (start-tag . sgml-start-tag-face)))

This works with XML as well as SGML, at least under Unix: of course,
you have to create the individual faces.  If anyone is interested in
the complete code (including the face definitions), I'll be happy to
e-mail privately.


All the best,


David

-- 
David Megginson                 ak117@freenet.carleton.ca
Microstar Software Ltd.         dmeggins@microstar.com
      http://home.sprynet.com/sprynet/dmeggins/

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS