caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Brian Skahan <bskahan@etria.com>
To: "'Liste CAML'" <caml-list@inria.fr>
Subject: Re: mixing different languages (was: RE: [Caml-list] dynamic HTML pages)
Date: Wed, 9 Apr 2003 13:24:38 -0400	[thread overview]
Message-ID: <20030409172438.GA2596@etria.com> (raw)
In-Reply-To: <20030409170309.GA30017@ontosoft.com>

[-- Attachment #1: Type: text/plain, Size: 1121 bytes --]

* Fred Yankowski <fred@ontosys.com> [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            _/_/_/_/_/

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2003-04-09 17:24 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-08  7:27 [Caml-list] dynamic HTML pages David Monniaux
2003-04-08  9:19 ` Maxence Guesdon
2003-04-08 11:59 ` Mattias Waldau
2003-04-08 12:28   ` mixing different languages (was: RE: [Caml-list] dynamic HTML pages) David Monniaux
2003-04-09 17:03     ` Fred Yankowski
2003-04-09 17:24       ` Brian Skahan [this message]
2003-04-10  7:20         ` Christian Lindig
2003-04-13 14:01       ` Pierre Weis
2003-04-09 18:12     ` Miles Egan
2003-04-09 23:00       ` Jeff Henrikson
2003-04-10  0:19         ` Miles Egan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030409172438.GA2596@etria.com \
    --to=bskahan@etria.com \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).