--- On Thu, 12/23/10, wimalopaan <[email protected]> wrote: > From: wimalopaan <[email protected]> > Subject: Extracting code snippets from source files and include them > To: "asciidoc" <[email protected]> > Date: Thursday, December 23, 2010, 12:39 AM > Hi, > > is there a possibiliy to extract code snippets from > external source > files and include them in asciidoc documents - perhaps like > the boost > quickbook snippets? > > The following source file > ------- > #include <iostream> > //[main > int main() { > } > //] > ------- > > imported in quickbook and selection of the snippet [main] > will only > render the function main (with the special comments > removed). > > Any hints? Thanks! >
I wrote a tool to do this. It can be found at https://developer.berlios.de/projects/codeextactor/ Hope it helps, -EdK Ed Keith [email protected] Blog: edkeith.blogspot.com -- You received this message because you are subscribed to the Google Groups "asciidoc" group. 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/asciidoc?hl=en.
