The principle of creating source code generators is pretty simple (details here): a model, a template, and a driver. Given:
- HTML5 can access to local files as the data model
- AngularJS has its template language
The syntax highlighting is done by SHJS.