It looks like something that could be handled just as well using Heckle by Marijn Haverbeke. It reads content and layouts from a Jekyll-like directory structure. Naturally, it uses CodeMirror for syntax highlighting.
There are loads of options for static site generators (here[0] is a good list of ~200), but it doesn't solve all problems. One question, for example, is how to get search functionality.