From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Christian Mallwitz Newsgroups: gmane.emacs.help Subject: highlighting/fontification of xml tags Date: Fri, 16 May 2003 07:42:11 -0400 Organization: Association for Computing Machinery Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1053096141 18955 80.91.224.249 (16 May 2003 14:42:21 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 16 May 2003 14:42:21 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Fri May 16 16:42:17 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19GgGf-0004NZ-00 for ; Fri, 16 May 2003 16:33:05 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19GgEQ-0006ip-08 for gnu-help-gnu-emacs@m.gmane.org; Fri, 16 May 2003 10:30:46 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.stueberl.de!news-FFM2.ecrc.net!news.iks-jena.de!linux1.netconx.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 19 Original-NNTP-Posting-Host: 216.101.177.253 Original-X-Trace: linux1.netconx.de 1053085332 7017 216.101.177.253 (16 May 2003 11:42:12 GMT) Original-X-Complaints-To: usenet@intershop.de Original-NNTP-Posting-Date: 16 May 2003 11:42:12 GMT User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2.1) Gecko/20021130 X-Accept-Language: en-us, en Original-Xref: shelby.stanford.edu gnu.emacs.help:113312 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:9808 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:9808 hi, I use xml-mode to edit xml files. my problem: highlighting all tags in one color, all comments in one color and all text in one color is rather silly. I would like to define a list which color certain tags should have and put that e.g. in my .emacs file. I had already a look at sgml-tag-face-alist in sgml-mode but couldn't figure out what to do with it. can somebody provide me with an example? or is there a more clever way to handle the situation? I could live with a fixed set of color definition for xml tag names applying to all my xml files... I use emacs 21.2.1 on W2K and the xml-mode that comes with it (derived from sgml-mode). thanks christian