From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.3 required=5.0 tests=AWL autolearn=disabled version=3.1.3 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id 6B237BBAF for ; Wed, 1 Oct 2008 17:45:18 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AroDACQ440jAXQIniGdsb2JhbACMFoZ2PgEBARUioihsJ4Z/AQI X-IronPort-AV: E=Sophos;i="4.33,344,1220220000"; d="scan'208";a="29796165" Received: from concorde.inria.fr ([192.93.2.39]) by mail4-smtp-sop.national.inria.fr with ESMTP; 01 Oct 2008 17:45:18 +0200 Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id m91FjErf028869 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Wed, 1 Oct 2008 17:45:17 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AuwDAGM340jRVdkVgGdsb2JhbACMFoZ2PgEBFCSiKGwnhn4BAg X-IronPort-AV: E=Sophos;i="4.33,344,1220220000"; d="scan'208";a="17554492" Received: from mail-gx0-f21.google.com ([209.85.217.21]) by mail3-smtp-sop.national.inria.fr with ESMTP; 01 Oct 2008 17:45:17 +0200 Received: by gxk14 with SMTP id 14so304597gxk.9 for ; Wed, 01 Oct 2008 08:45:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=+BxfFbqLrf0f0Cd3CVNAZC/tE6xmCag0BIqPzFv/2QM=; b=ETnpdmcOX8uEzTUwqWQ4riPBscuvyPnsUR7agG0Ts7SMqBr5io7AhwI+f9FjY0Rkw0 gKEvkk1U/FfHsAi+rrzUo88AeWO+UnlkZeD6Cw9FSz7xwFpq6Ox51hFqk+wbJ1E7NZY9 pMf/8IEx67sF39uFl8Z7XOda1nGGwFP7XHZ64= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=L7si8qR2OCsGqtpganXGTNdPkAxQhPJfsxHM8X8NcGCMGvmSOJ8lsxcZWNSVGPbJOH 1Vr58RY+64JBJvve/T1bsPpQK2n47Nl/ySvFGom3gPPQnCdOb50Rwl6dJZKXGlt+q2DP IHd1tc/mZbz3LIRkRKow5DZ6TJdX5TtBNz92w= Received: by 10.151.48.15 with SMTP id a15mr12281322ybk.48.1222875916716; Wed, 01 Oct 2008 08:45:16 -0700 (PDT) Received: by 10.151.155.11 with HTTP; Wed, 1 Oct 2008 08:45:16 -0700 (PDT) Message-ID: <666572260810010845m38930d5embd281d7da5287b49@mail.gmail.com> Date: Wed, 1 Oct 2008 17:45:16 +0200 From: Adrien To: "Dario Teixeira" Subject: Re : [Caml-list] Syntax highlighting and Ocaml/PHP integration Cc: caml-list@inria.fr In-Reply-To: <650721.83058.qm@web54605.mail.re2.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <650721.83058.qm@web54605.mail.re2.yahoo.com> X-Miltered: at concorde with ID 48E39B0B.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; syntax:01 ocaml:01 ocaml:01 bindings:01 caml-list:01 tex:01 jambon:01 caml:02 caml:02 color:97 output:02 drawback:04 hack:04 nader:05 probably:07 Hi, You might try Highlight[1] and Caml2html[2]. I know I've tried Highlight but I simply can't remember how the result looked like, most probably because I needed to write to a tex file (I still don't know if there's anything with color support). Caml2html generates nice pages but only supports the ocaml language, it's written in ocaml however. OK, tried hightlight again... Its output is less colorized than vim's but still alright and this can be changed. It's GPLv2. The drawback is that it's written in C++ so probably not the best solution if you want to hack it. (* I've been going through (p)7zip to write bindings, why does C++ have to be that horrible ? *) The code might be perfectly understandable though, I've not looked at it. [1] http://www.andre-simon.de/doku/highlight/highlight.html [2] http://martin.jambon.free.fr/caml2html.html --- Adrien Nader