Browse thread
[Caml-list] dynamic HTML pages
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Brian Skahan <bskahan@e...> |
| Subject: | Re: mixing different languages (was: RE: [Caml-list] dynamic HTML pages) |
* 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 _/_/_/_/_/