From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Oliver Scholz Newsgroups: gmane.emacs.help Subject: Re: Syntax highlighting for another languaje Date: Wed, 27 Nov 2002 09:39:37 +0100 Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1038386662 20447 80.91.224.249 (27 Nov 2002 08:44:22 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 27 Nov 2002 08:44:22 +0000 (UTC) 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 18Gxnx-0005Je-00 for ; Wed, 27 Nov 2002 09:44:21 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 18Gxl3-0005Ap-00; Wed, 27 Nov 2002 03:41:21 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news-fra1.dfn.de!news-han1.dfn.de!news.uni-paderborn.de!fu-berlin.de!uni-berlin.de!dialin-145-254-191-111.arcor-ip.NET!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 22 Original-NNTP-Posting-Host: dialin-145-254-191-111.arcor-ip.net (145.254.191.111) Original-X-Trace: fu-berlin.de 1038386403 24452605 145.254.191.111 (16 [87814]) X-Operating-System: GNU/Linux, built from scratch: http://www.linuxfromscratch.org/ X-Attribution: os X-Face: "HgH2sgK|bfH$;PiOJI6|qUCf.ve<51_Od(%ynHr?=>znn#~#oS>",F%B8&\vus),2AsPYb -n>PgddtGEn}s7kH?7kH{P_~vu?]OvVN^qD(L)>G^gDCl(U9n{:d>'DkilN!_K"eNzjrtI4Ya6;Td% IZGMbJ{lawG+'J>QXPZD&TwWU@^~A}f^zAb[Ru;CT(UA]c& User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-msvc-nt5.1.2600) Cancel-Lock: sha1:fHIJCK2+i5tLhm8S7qBhMl4VFhs= Original-Xref: shelby.stanford.edu gnu.emacs.help:107541 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:4091 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:4091 "Bermudez, Leonardo " writes: [...] > I was wondering how can I define font-locking for another > languaje. This languaje is just comment lines that start with "--", > some comands in uppercase and numbers (its an input file for another > program). I was checking some of the definitions for awk, c++ and > others but they were intimidating for my newibie level in lisp. [...] Have a look at `define-generic-mode'. This makes it easy to define simple modes. See for more information. For more complex stuff there is a tutorial at Oliver -- 7 Frimaire an 211 de la Révolution Liberté, Egalité, Fraternité!