I'm currently creating a programming workshop (actually it is about OOD, but that shouldn't matter to much).
I have mainly two kinds of resources:
- slides (HTML / reveal.js)
- sample projects (Java)
In many places code from the sample projects should appear in the presentation.
What is a good way to achieve that?
My Requirements are
an easy way to specify a code snippet to be used in a presentation, and the place where it should appear
changes in the code are reflected in the presentation automatically (running a build tool is ok, manually cutting and pasting stuff is not)
broken links (like trying to embed a code snippet that does not exists or marking a snippet that does not get used in the presentation should create a warning
Bonus points for having links between code and presentation