From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id TAA25759; Wed, 9 Apr 2003 19:24:41 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f 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 TAA25796 for ; Wed, 9 Apr 2003 19:24:40 +0200 (MET DST) X-SPAM-Warning: Sending machine is listed in blackholes.five-ten-sg.com Received: from polin8.etria.com (pool-141-157-23-220.balt.east.verizon.net [141.157.23.220]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h39HOd909414 for ; Wed, 9 Apr 2003 19:24:39 +0200 (MET DST) Received: by polin8.etria.com (Postfix, from userid 501) id 3D3B11DF070; Wed, 9 Apr 2003 13:24:38 -0400 (EDT) Date: Wed, 9 Apr 2003 13:24:38 -0400 From: Brian Skahan To: "'Liste CAML'" Subject: Re: mixing different languages (was: RE: [Caml-list] dynamic HTML pages) Message-ID: <20030409172438.GA2596@etria.com> Mail-Followup-To: 'Liste CAML' References: <036001c2fdc6$522084d0$0a00a8c0@gateway> <20030409170309.GA30017@ontosoft.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="KsGdsel6WgEHnImy" Content-Disposition: inline In-Reply-To: <20030409170309.GA30017@ontosoft.com> User-Agent: Mutt/1.5.4i X-Spam: no; 0.00; caml-list:01 yankowski:01 ontosys:01 monniaux:01 implemented:01 python:01 ocaml:01 jsp:98 0200,:01 vim:01 emacs:01 trivial:01 syntax:02 mmm:02 wrote:03 X-Attachments: type="application/pgp-signature" Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk --KsGdsel6WgEHnImy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline * Fred Yankowski [030409 13:05]: > On Tue, Apr 08, 2003 at 02:28:50PM +0200, David Monniaux wrote: > > Are there any text editors that are aware of such mixed programs? > > Emacs has an available MMM package -- Multiple Major Modes -- that > applies different modes to different sections of any given file based > on patterns that define the different language regions. It works > fairly well with, for example, PHP code embedded in HTML, presenting > the PHP code with php-mode and the HTML code with an html mode, using > the font-coloring and other mode-specific view and behavior specific > to each mode in the particular regions. Vim has a similar feature, though I don't think its implemented for ocaml at the moment. It works for mixed php/html, python(psp)/html, and jsp/html. Porting the jsp syntax file to psp was trivial, so I expect getting ocaml to work would not be difficult. Regards, Brian -- _/_/_/_/_/ Brian Skahan _/ bskahan@etria.com _/_/_/_/_/ _/_/ Towson University _/ Baltimore, MD U.S. _/_/ _/_/_/_/_/ http://www.etria.com _/_/_/_/_/ --KsGdsel6WgEHnImy Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+lFdW8P940BNhT2YRAhIlAJ4s9WwrWTKQ9qXzXWmx4ACBdBk/EgCgjYZT RCGbXLJwImASAk9gcdqWg50= =d71v -----END PGP SIGNATURE----- --KsGdsel6WgEHnImy-- ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners