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
- JavaScript is the driver
The syntax highlighting is done by SHJS.
Since it takes any JavaScript object as the model, other potential input formats are JSON and XML (with aid of some library). This is a lightweight cross-platform source code generator.
No comments:
Post a Comment