From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/51414 Path: news.gmane.org!not-for-mail From: Berend de Boer Newsgroups: gmane.comp.tex.context Subject: Re: Pretty print SQL broken? Or am I doing something wrong? Date: Wed, 24 Jun 2009 11:18:32 +0200 Message-ID: <873a9q6lcn.fsf@dullio.nederware.nl> References: <87iqj7kvfp.fsf@dullio.nederware.nl> <87y6rz7yff.fsf@dullio.nederware.nl> <80C7B6AC-8014-466D-A197-17CBABD85248@rna.nl> 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 1245835189 23138 80.91.229.12 (24 Jun 2009 09:19:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Jun 2009 09:19:49 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jun 24 11:19:42 2009 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 1MJOdl-0004te-Tz for gctc-ntg-context-518@m.gmane.org; Wed, 24 Jun 2009 11:19:38 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 92A651FC24; Wed, 24 Jun 2009 11:19:37 +0200 (CEST) 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 15230-01-2; Wed, 24 Jun 2009 11:18:52 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9E13C1FBFB; Wed, 24 Jun 2009 11:18:52 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EF7E61FBFB for ; Wed, 24 Jun 2009 11:18:50 +0200 (CEST) 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 15191-01-2 for ; Wed, 24 Jun 2009 11:18:41 +0200 (CEST) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by ronja.ntg.nl (Postfix) with ESMTP id 3289F1FBEF for ; Wed, 24 Jun 2009 11:18:41 +0200 (CEST) Original-Received: from sasl.smtp.pobox.com (b-sasl-quonix.sasl.smtp.pobox.com [208.72.237.35]) by filter3-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n5O9Idpu019739 for ; Wed, 24 Jun 2009 11:18:40 +0200 Original-Received: from localhost.localdomain (unknown [127.0.0.1]) by b-sasl-quonix.pobox.com (Postfix) with ESMTP id 226AD2D5E5; Wed, 24 Jun 2009 05:18:38 -0400 (EDT) Original-Received: from dullio.nederware.nl (unknown [86.86.206.246]) by b-sasl-quonix.pobox.com (Postfix) with ESMTPA id B43322D5E4; Wed, 24 Jun 2009 05:18:36 -0400 (EDT) Original-Received: from dullio.nederware.nl (localhost [127.0.0.1]) by dullio.nederware.nl (Postfix) with ESMTP id 5026B34F6660; Wed, 24 Jun 2009 11:18:32 +0200 (CEST) Nil: Local Ispell dictionary set to nederlands X-Home-Page: http://www.berenddeboer.net/ Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAAP1BMVEUJEgAlGhQgHCI8KB1W PS9fPCMzQ3JuPypXSllCVIeIVD55XU9NZKNYZpaoWkiaYUFkcZmiaFG7d1yzfGDIjG/bCLklAAAA AXRSTlMAQObYZgAAAAlwSFlzAAALiQAAC4kBN8nLrQAAAhpJREFUSMeVlY2SgyAMhFVAIIqI+P7P ehuitdc5Uy/Tae3MfuSPWbvur5issYhp6p7FZPq+N4ahZwjrJcyDNNMlP5HHemMEeVaO4S7kSyPs m9p5bySmr/MxzjlPRA7HqymsqD3EOW8le4SzGiB6VrfICCJltIe+Vlbvu0CF7ieLDNZRhn6Hfj8R ZxXAUdnq/goGigbYD4CJSjqw/Q/wpbaG30rSAGuplPIc6KwrEvUiar2d6kLeQ4w74fmh7hV/PJU7 YFmWQpIADCqrWxFWAVB/LTTZqVXFW+aulluAGoAMtbF5KXairAG0HWuo27JtSAm81uW2JuIUxzVa ODAjfG6ntPgGyEUVgDMqAJ1AS7B9A3gR55pF276/AVUW3OoRTLMlXw79xv14BpQEL4BvRDMA5/MX wBGAKnIG4CBZB1xF8HJb4CrhWbVWg81mrkP2wEajACk4dgGIKt/sUpoxdRoA73PoAFZGHh23HwWI McCHLawVhGfHRN/K+yFFEPJOcNTCO8VYWX4SvWnuDf2t16c4jnFGxHE4CJRzb/U4fhzn+SQGeU1o epwvGQQx0klYb+QQXSkYCRMvOcR1/XOY8Tg4XkSCb4SYxrR+MiufLe3+ImKwY0RrINL6oT8HNL8V Na94o+L8MaUEbv09/BN4I1I2QwhpTS3iqxlZ1ou4igq57+0woB4kkMregYs4gDgYk10/hLWpE9pJ CfofzVo1VdGgppkAAAAASUVORK5CYII= In-Reply-To: <80C7B6AC-8014-466D-A197-17CBABD85248@rna.nl> (Gerben Wierda's message of "Tue\, 16 Jun 2009 00\:38\:09 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-Pobox-Relay-ID: 00229C88-60A0-11DE-B5CA-DA7A2FBFAAF1-48001098!b-sasl-quonix.pobox.com X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=208.72.237.35; country=US; region=PA; city=King Of Prussia; postalcode=19406; latitude=40.0902; longitude=-75.3937; metrocode=504; areacode=610; http://maps.google.com/maps?q=40.0902,-75.3937&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 248840123 - 1e1a926510cc - 20090624 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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:51414 Archived-At: >>>>> "Gerben" == Gerben Wierda writes: >>>>>> "Gerben" == Gerben Wierda writes: >> Gerben> For 'SQL' I assume I should use 'sql'. When I do that, Gerben> exactly the same happens. >> >> I mean "select" instead of "SELECT". Hi Gerben, Just following up publicly on the files you sent me, this works for me: \setuptyping[SQL][palet=colorpretty] \def\typeSQLfile{\typefile[SQL]} \starttext \typeSQLfile{test2.txt} \stoptext So changes: 1. Don't define the typing, it's already. 2. use SQL, not sql. 3. Your SQL keywords must be lowercase not UPPERcase, else they won't get highlighted. 4. comments inside your SQL file trip up the parser, don't know why, but just leave them out. -- Groetjes, Berend. ___________________________________________________________________________________ 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 ___________________________________________________________________________________