in reply to [literate programming] How to mix POD with code? And how to fold this?
The pre-weaved documentation in folding HTML format is here:
http://literate-molly.sourceforge.net/
You have to have JAvascript enabled in your browser (and use Opera, Firefox, or Safari, the script has not been verified with IE in particular)
The script itself and the LP source file can be got from Github:
http://github.com/unixtechie/Literate-Molly
Take Molly, and use it.
If however you will still wish to do the same thing with POD rather than HTML, add a most primitive regex POD formatter to Molly, modelling it on the "dotHTML" sample formatter, included in the source. Just copy it and change "dots" to POD marks in your regular expressions, eliminating the unnecessary lines.
With POD you lose one of the MAIN ADVANTAGES of Literate Programming, though: ability to write code IN THE ORDER OF YOUR OWN LOGIC, rather than the one imposed by the machine.
|
|---|