From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Robert Pollard Newsgroups: gmane.emacs.help Subject: Re: [Newbie] Colorizing keywords Date: Thu, 24 Apr 2003 09:41:09 -0700 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <8D06F957-7673-11D7-8E48-0003930A6566@apple.com> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v543) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1051202567 6218 80.91.224.249 (24 Apr 2003 16:42:47 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 24 Apr 2003 16:42:47 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 24 18:42:45 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 198jmq-0001Uk-00 for ; Thu, 24 Apr 2003 18:41:28 +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 198jnZ-0005nu-00 for gnu-help-gnu-emacs@m.gmane.org; Thu, 24 Apr 2003 12:42:13 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 198jnD-0005Ic-00 for help-gnu-emacs@gnu.org; Thu, 24 Apr 2003 12:41:51 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 198jmh-0004KU-00 for help-gnu-emacs@gnu.org; Thu, 24 Apr 2003 12:41:26 -0400 Original-Received: from mail-out2.apple.com ([17.254.0.51]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 198jmd-0004AB-00 for help-gnu-emacs@gnu.org; Thu, 24 Apr 2003 12:41:15 -0400 Original-Received: from mailgate1.apple.com (A17-128-100-225.apple.com [17.128.100.225]) by mail-out2.apple.com (8.12.9/8.12.9) with ESMTP id h3OGfAQd025333 for ; Thu, 24 Apr 2003 09:41:10 -0700 (PDT) Original-Received: from scv3.apple.com (scv3.apple.com) by mailgate1.apple.com ; Thu, 24 Apr 2003 09:40:59 -0700 Original-Received: from RobertDevSys ([17.101.117.23]) by scv3.apple.com (8.12.9/8.12.9) with ESMTP id h3OGf90j026042; Thu, 24 Apr 2003 09:41:09 -0700 (PDT) Original-To: Martin Stemplinger In-Reply-To: X-Mailer: Apple Mail (2.543) 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:8778 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:8778 Yes I now know about font-lock thanks to you and Phillip Lord. This takes care of known document types. What about making my own definitions for colorization? Is it possible to create my own database of keywords and define the color that is used for each? How does font-lock-mode do it? It would have to have a place where the keywords and patterns are defined with what colors they should be. Where would this be located so I can figure out how to do my own definitions? I suspect there is Lisp code involved and I can sort of imagine the Lisp code that could do what is needed. Any ideas? Thanks, Robert On Wednesday, April 23, 2003, at 11:10 AM, Martin Stemplinger wrote: > On Mi Apr 23 2003 at 19:46, Robert Pollard wrote: > >> If there is a way to turn on colorization in HTML mode I would >> appreciate someone letting >> me know how this works. > > Do you know about font-lock-mode? C-h a font-lock shows you. You may > also be interested in color-theme, which lets you easily customize > which colors are used. > > HTH > Martin > _______________________________________________ > Help-gnu-emacs mailing list > Help-gnu-emacs@gnu.org > http://mail.gnu.org/mailman/listinfo/help-gnu-emacs >