From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 634EEBC48 for ; Fri, 1 Apr 2005 00:36:31 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j2VMaU25017793 for ; Fri, 1 Apr 2005 00:36:31 +0200 Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id AAA16430 for ; Fri, 1 Apr 2005 00:36:30 +0200 (MET DST) Received: from floating.caltech.edu (floating.caltech.edu [131.215.34.116]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j2VMaTEp012406 for ; Fri, 1 Apr 2005 00:36:29 +0200 Received: from t by floating.caltech.edu with local (Exim 3.35 #1) id 1DH8H6-0003aW-00 for caml-list@inria.fr; Thu, 31 Mar 2005 14:36:28 -0800 Date: Thu, 31 Mar 2005 14:36:28 -0800 From: Titus Brown To: caml-list@inria.fr Subject: Re: [Caml-list] colorized output of ocaml interactive shell Message-ID: <20050331223628.GA11607@caltech.edu> References: <87d5tf5xtf.fsf@linux-france.org> <20050331221916.GA17009@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050331221916.GA17009@localhost> User-Agent: Mutt/1.3.28i Sender: Titus Brown X-Miltered: at concorde with ID 424C7B6E.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 424C7B6D.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 ocaml:01 ocaml:01 vim:01 syntax:01 vim:01 emacs:01 colorizing:01 ...:98 macros:01 caltech:02 caml:02 output:02 output:02 types:02 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.2 X-Spam-Level: -> > > Hello, -> > > -> > > I will do a presentation on OCaml soon. I would like to show some -> > > example of interactive sessions in the OCaml interactive environment, -> > > ocaml launched in an XTerm. Does anybody know a program/shell -> > > script/whatever that can produce a nice colorized output (e.g. types)? -> > > Any advice? -> > -> > You could try using the VIm syntax highlighting mode. You can pipe text -> > into VIm -- see $VIM/macros/less.sh. -> -> Or you can run an OCaml subshell in Emacs, and get its colorizing. Or... http://www.gnu.org/software/src-highlite/source-highlight.html It only has a CAML mode, but that should be sufficient, no? --titus