From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/37216 Path: news.gmane.org!not-for-mail From: John Culleton Newsgroups: gmane.comp.tex.context Subject: Re: Notepad++ colour settings Date: Sat, 3 Nov 2007 08:54:35 -0400 Organization: Able Indexers and Typestters Message-ID: <200711030854.35976.john@wexfordpress.com> References: <200711021434.38976.john@wexfordpress.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1194094734 17080 80.91.229.12 (3 Nov 2007 12:58:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 3 Nov 2007 12:58:54 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Nov 03 13:58:56 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1IoIaV-0006TW-1R for gctc-ntg-context-518@m.gmane.org; Sat, 03 Nov 2007 13:58:55 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B693E1FC66; Sat, 3 Nov 2007 13:58:32 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 01985-03-30; Sat, 3 Nov 2007 13:58:27 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4E8DC1FC14; Sat, 3 Nov 2007 13:57:52 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5FC5E1FB37 for ; Sat, 3 Nov 2007 13:57:49 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 01995-02-27 for ; Sat, 3 Nov 2007 13:57:39 +0100 (CET) Original-Received: from dpmailmta02.doteasy.com (dpmailmta02-20.doteasy.com [65.61.218.40]) by ronja.ntg.nl (Postfix) with ESMTP id 8F0C71FC57 for ; Sat, 3 Nov 2007 13:56:38 +0100 (CET) Original-Received: from typebye.com (unverified [192.168.101.49]) by dpmailmta02.doteasy.com (DEO) with ESMTP id 112025723-1814644 for ; Sat, 03 Nov 2007 05:21:59 -0800 Original-Received: from c-76-21-134-36.hsd1.md.comcast.net [76.21.134.36] by typebye.com with ESMTP (SMTPD32-8.05) id A005AA60176; Sat, 03 Nov 2007 05:56:37 -0700 User-Agent: KMail/1.9.7 In-Reply-To: Content-Disposition: inline X-IP-stats: Incoming Last 0, First 20, in=50337, out=0, spam=0 ip=192.168.101.49 X-Originating-IP: 192.168.101.49 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:37216 Archived-At: On Saturday 03 November 2007 01:54:56 am Aditya Mahajan wrote: > On Fri, 2 Nov 2007, John Culleton wrote: > > On Friday 02 November 2007 08:12:31 am richard.stephens@converteam.com wrote: > >> I have downloaded the latest Notepad++ and ConTeXt settings as suggested > >> by Professor Hamid and I'm enjoying the experience of using them! > >> > >> However, I do not really like the colour scheme and tried to alter the > >> background colours by editing "Application > >> Data/Notepad++/UserDefineLang.xml", shutting down Notepad++ and starting > >> up again (via Npp.bat), but no change. I also tried editing the "tex" > >> entry in "Application Data/Notepad++/stylers.xml", but no joy. > >> I tried going to menu item Settings - Style Configurator, but Context > >> isn't in the list of languages. > >> > >> How can I alter the default colour settings for ConTeXt, please? > >> > >> Richard Stephens > > > > You might have more luck with Vim/Gvim which has an open-ended syntax > > highlighting scheme with almost 500 files named e.g., cobol.vim in the > > subdirectory syntax. It will do automatic sensing by suffix but you can > > manually select one too. It even has one for Context. > > > > You can modify the syntax files if you like or create new ones but either > > task looks like an all-day project to me. > > I would like to disagree here. I love vim, and use it for all my editing > tasks, but it is not easy to write a syntax file for vim. Simple syntax is > easy, but getting correct syntax highlighting for context is a hard thing. > I have been writing one syntax file for almost a year now, but it is not > perfect. The difficulty is doing context sensitive highlighting. For > example, for > > \setupwhatver[key=value] > > I want setupwhatever to be blue, and key=value to be red. Now sometimes, > value is be a series of context commands entered as key={value}. In that > case, I want everything in brackets to be hightlighted as the default > context hightlighting (rather than red), so that if I make a mistake in > the long statement, the syntax highlighting can help me. This is ok, but > things gets hard when you want to do > > \setupwhatever[before={\setupsomething[key=value]}]. > > And now, the same problem for key=value setting in the nested setup > command. > > There are other things which are difficult. \type is one command which I > can never get to work. It is easy to get things like \type|command| or > \type+command+ or \type{command} to give the correct highlighting, but > something like \type{\command{parameter}} is hard. > > I could not find enough hooks in the vim syntax highlighting to get > everything that I want. I have not really looked at how configurable the > highlighting features of other languages are. But what I want to say here > is that writing syntax highlighting for context is hard. And it is > certainly not a one day project. > > Aditya There is a file named context.vim in my 7.1 version of Gvim. I normally just use the default tex.vim file. Nikolai Weibull now@bitwi.se wrote it. Don't know if it meets all your desires however. I meant to say that writing a syntax file is not a trivial task. I haven't tired it yet. -- John Culleton Resources for every author and publisher: http://wexfordpress.com/tex/shortlist.pdf http://wexfordpress.com/tex/packagers.pdf http://www.creativemindspress.com/newbiefaq.htm http://www.gropenassoc.com/TopLevelPages/reference%20desk.htm ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________