From mboxrd@z Thu Jan 1 00:00:00 1970
Path: main.gmane.org!not-for-mail
From: Phillip Lord
Newsgroups: gmane.emacs.help
Subject: Re: [Newbie] Colorizing keywords
Date: 23 Apr 2003 18:54:54 +0100
Organization: Dept of Computer Science, University of Manchester, U.K.
Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org
Message-ID:
References:
NNTP-Posting-Host: main.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: main.gmane.org 1051121190 25390 80.91.224.249 (23 Apr 2003 18:06:30 GMT)
X-Complaints-To: usenet@main.gmane.org
NNTP-Posting-Date: Wed, 23 Apr 2003 18:06:30 +0000 (UTC)
Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 23 20:06:24 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 198OdT-0006ai-00
for ; Wed, 23 Apr 2003 20:06:23 +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 198OdA-0004KJ-04
for gnu-help-gnu-emacs@m.gmane.org; Wed, 23 Apr 2003 14:06:04 -0400
Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!logbridge.uoregon.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!nntp.theplanet.net!inewsm1.nntp.theplanet.net!zen.net.uk!130.88.203.18.MISMATCH!peernews.mcc.ac.uk!cs.man.ac.uk!not-for-mail
Original-Newsgroups: gnu.emacs.help
Original-Lines: 31
Original-NNTP-Posting-Host: rpc71.cs.man.ac.uk
Original-X-Trace: wapping.cs.man.ac.uk 1051120494 32492 130.88.198.228 (23 Apr 2003
17:54:54 GMT)
Original-X-Complaints-To: news@wapping.cs.man.ac.uk
Original-NNTP-Posting-Date: Wed, 23 Apr 2003 17:54:54 +0000 (UTC)
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.93
Original-Xref: shelby.stanford.edu gnu.emacs.help:112235
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:8734
X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:8734
>>>>> "Robert" == Robert Pollard writes:
Robert> Hello all,
Robert> Is there a way to define the colors that are used for
Robert> keywords in a document? For example, if I am editing an
Robert> HTML document I want the keywords colorized instead of just
Robert> plain black and white. I know there is an HTML mode but it
Robert> doesn't colorize anything. Can I change the colors to
Robert> indicate what colors I want if there is a predefined color
Robert> scheme for a particular mode?
Robert> If there is a way to turn on colorization in HTML mode I
Robert> would appreciate someone letting me know how this works.
Robert> I am working in Cygwin and Emacs version 21.2.1.
Robert> Thanks in advance for any time you use to help me with,
You just need to turn it on.
There is a check box in the Options menu called "Syntax Highlighting",
which should do the trick. Or you can put "(global-font-lock-mode 1)"
into your .emacs.
There is a detailed description in the FAQ (Help->Faq, then type "i"
(for index) and "syntax" and you should find it).
Cheers
Phil