From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Christian Schlauer Newsgroups: gmane.emacs.help Subject: Re: Getting started with syntax highlighting. Date: Tue, 25 Oct 2005 20:28:00 +0200 Message-ID: <3s7bp2Fmsl5rU1@individual.net> References: Reply-To: cs-usenet@arcor.de NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1130265332 29110 80.91.229.2 (25 Oct 2005 18:35:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 25 Oct 2005 18:35:32 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 25 20:35:30 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EUTYw-0006Ar-P2 for geh-help-gnu-emacs@m.gmane.org; Tue, 25 Oct 2005 20:30:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EUTYw-0004XG-91 for geh-help-gnu-emacs@m.gmane.org; Tue, 25 Oct 2005 14:30:18 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.news.ucla.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 14 Original-X-Trace: individual.net onBUw+RDHDqALT55Gg2qEgZaAoc+Be/62YYL4H54gV8CmjpG0= User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (windows-nt) Original-Xref: shelby.stanford.edu gnu.emacs.help:134972 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:30561 Archived-At: Alex Polite writes: > I want get into syntax highlighting. > > What I want to do is grey out all text that matches the regular > expression "{id:\d+}. Sounds pretty basic right? But the documentation > leaves me puzzled. > > Anybody out got a simple example to get me started? Try `M-x highlight-regexp RET', maybe this is enough for you. You can learn more about this in the comment section of the file hi-lock.el. -- Christian Schlauer