Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Literate programming
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jeffrey Palmer <jeffrey.palmer@a...>
Subject: Re: [Caml-list] Literate programming
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