caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Jeffrey Palmer <jeffrey.palmer@acm.org>
To: Benedikt Schmidt <s_bschmi@ira.uka.de>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Literate programming
Date: Tue, 3 Dec 2002 12:29:38 -0600	[thread overview]
Message-ID: <200212031229.39223.jeffrey.palmer@acm.org> (raw)
In-Reply-To: <20021203182026.GA826@wn4-marvin.wn4.uni-karlsruhe.de>

On Tuesday 03 December 2002 12:20 pm, Benedikt Schmidt wrote:
> Does anyone know if there is an emacs-mode which supports syntax
> highlighting and indenting of the OCaml part in funnelweb files?

I don't know about funnelweb, but if you're not tied to it, the noweb emacs 
mode intelligently switches from noweb syntax mode to the language-dependent 
mode when you move from section to section. Very nice.

You just need to add a line like this to the top of your file (from my Haskell 
source):

% -*- mode: Noweb; noweb-code-mode: literate-haskell-mode -*-

Hope this helps,

	- j

-- 
The river is moving.
The blackbird must be flying.

-------------------
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


  reply	other threads:[~2002-12-03 18:29 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-03  9:53 Alessandro Baretta
2002-12-03  9:59 ` [Caml-list] " Alessandro Baretta
2002-12-03 15:41 ` [Caml-list] " kahl
2002-12-03 18:20   ` Benedikt Schmidt
2002-12-03 18:29     ` Jeffrey Palmer [this message]
2002-12-03 18:42     ` Fred Yankowski
2002-12-05  1:30       ` Yurii A. Rashkovskii
2002-12-05  7:54         ` Jérôme Marant
2002-12-05 14:34           ` David Brown
2002-12-05 15:34             ` Alan Schmitt
2002-12-05 19:44             ` Jérôme Marant
2002-12-06  0:33               ` [Caml-list] Web browser in caml (was Literate programming) Alan Schmitt
2002-12-05 19:52 ` [Caml-list] Literate programming Norman Ramsey

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=200212031229.39223.jeffrey.palmer@acm.org \
    --to=jeffrey.palmer@acm.org \
    --cc=caml-list@inria.fr \
    --cc=s_bschmi@ira.uka.de \
    /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).