back way too many years ago I started literate programming with cweb. I'm returning to LP using leo but either I'm missing a feature or the approach has changed. back in cweb days I wrote each section with a narrative and then a code section. I've started importing an existing bit of code and got the code section right but I can't figure out how to create a narrative section.
It may be possible to colorize all doc parts using reStructuredText. I'll look into this today.