From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/51726 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Mark IV Syntax highlighting support Date: Sat, 11 Jul 2009 00:03:41 +0200 Message-ID: <4A57BABD.6040701@wxs.nl> References: <4A494167.9010804@nibua-r.org> <4A49422E.40404@nibua-r.org> <20090630135807.GP1611@katherina.student.utwente.nl> <4A4BEAA8.5080406@nibua-r.org> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1247263491 4490 80.91.229.12 (10 Jul 2009 22:04:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 10 Jul 2009 22:04:51 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Jul 11 00:04:44 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 1MPOCy-0004H5-9U for gctc-ntg-context-518@m.gmane.org; Sat, 11 Jul 2009 00:04:44 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A60611FB7E; Sat, 11 Jul 2009 00:04:43 +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 25436-01; Sat, 11 Jul 2009 00:03:56 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2E4921FB1D; Sat, 11 Jul 2009 00:03:56 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 01E1B1FB1D for ; Sat, 11 Jul 2009 00:03:54 +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 23143-05-4 for ; Sat, 11 Jul 2009 00:03:44 +0200 (CEST) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by ronja.ntg.nl (Postfix) with ESMTP id CAEC91FADF for ; Sat, 11 Jul 2009 00:03:44 +0200 (CEST) Original-Received: from mail.pragma-ade.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by filter4-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n6AM3hm2011546 for ; Sat, 11 Jul 2009 00:03:43 +0200 Original-Received: from [10.100.1.107] (unverified [10.100.1.107]) by controller-1 (SurgeMail 3.9e) with ESMTP id 25690-1840426 for ; Sat, 11 Jul 2009 00:03:43 +0200 User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) In-Reply-To: <4A4BEAA8.5080406@nibua-r.org> X-Originating-IP: 10.100.1.107 X-Authenticated-User: hagen@controller-1 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=83.247.100.17; country=NL; region=15; city=Almelo; latitude=52.3500; longitude=6.6667; http://maps.google.com/maps?q=52.3500,6.6667&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 259079877 - 2836f41c034f - 20090711 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 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:51726 Archived-At: Renaud Aubin wrote: > Hi folks ! > > I have just finished a first draft of pret-xml.lua: > - I need to improve its coverage (html); > - DTD declaration is not yet managed; > - I do nothing about re-indentation since I prefer to format my xml > sample by myself (by hand or using xmllint); > - That's my first try to lua/luatex (after several months of Java...) so > my definitions (esp. for functions) is not clean at all (you have been > warned); > > I have done it the "trial/error" way without much design reflexion just > for fun (I'm on vacation)... I'm not sure it will be reusable... > > Take all your test files and please report issues (or give me advices)! ;) syntax highlighting is kind of tricky esp since we can have either correct syntax or faulty (can be educational) this is why the pretty printers work in a rather dumb non validating mode; however, in mkii we also have parser based variants for xml pretty printing in mkiv i will provide only a few pretty printers, i.e. the ones needed for my manuals; these will be organized under pre-* in addition i will provide a user installable variant but i need to think about it a bit; we also need more verbose names then so that there can be multiple pretty printers per file type; (i will also make a basic configureable mapper but that's for later) so, we can have both validating and non validating pretty printing and multiple variants in any case .. keep making and testing them .. i'll try to cook up the plug in mechanism and naming scheme asap Hans ps. dtd declaration etc ... i shall provide a pretty printer based on th ebuild in xml parser (kind of like what we have in mkii); of course this leaves along non validated coloring ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________