In reply to a tweet by emilymhorsman:
@emilymhorsman noweb is pretty straightforward to use. your first transform is `noweave` and your second is `notangle`. It has an Emacs major mode for doing the right mode switching in different hunks in the document.