I've been looking for something to produce good looking commentaries for coding examples and have come across dexy. It has some similarities to Leo conceptually as it has a template, (or boilerplate) file (in the mail-merge sense) that lets you pull in live code files, (or comment identified pieces from those files), run them through one or more "filters", and have the filter's output placed in your output document.
The filters you pick can do things like syntax coloring, (pygments is on of the available colorizing filters), running it through the console, or just running it and collecting the output. Filters can be chained with the '|' symbol, (like unix pipes). The document you are creating has the choice of a lot of different markup languages, filters exist to format the "pulled in" text to whichever one you are using, also, there are filters for a lot of different programming languages. It is a command line system, so it looks to be a natural for Leo, all your code files, the "boilerplate" document, and .dexy config file, (that controls what gets feed to it), could be contained in a single .leo outline. As dexy is a python application, script buttons could be made to invoke it, and, depending on what markup you where using, you might be able to preview the final output, (e.g. if you where using rst). So far it is looking pretty interesting. Tom -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To view this discussion on the web visit https://groups.google.com/d/msg/leo-editor/-/BlyEnLQve7kJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en.
