This article is from the Literate Programming FAQ, by David B. Thompson email@example.com with numerous contributions by others.
Bruce Stephens (no email contact)
This is a very simple mode I just hacked up. There's a lot
wrong with it, but I thought others may be interested, even as
it stands. It *requires* text properties, and assumes those
used in GNU Emacs 19.22; it'll quite likely work with Lucid
Emacs, but I haven't tried it.
I use it with auctex8.1 and cc-mode 3.229, both of which are
loaded separately (I think my emacs is dumped with them, in
The idea is to have one mode (which calls itself c-mode, but
actually has LaTeX-mode keybindings) generally (this means that
the code is hilighted nicely), and have the code chunks use a