Re: DRY way to insert source code into an article?

Tom Copeland <[email protected]>
Newsgroups gmane.comp.programming.language-of-the-year
Message-ID <[email protected]>
On Sun, 2008-04-13 at 15:49 +0100, Nat Pryce wrote:
> > Do people write the article in some plain
> > text format (TeX? DocBook?) or some open document format (ODT?) and
> > then use a template-generation strategy to generate final document?
> 
> I use Docbook, have defined my own XML format for some of my
> documentation projects, and am also looking into DITA for reference
> manuals and the like.

I've used DocBook with vi/dbhelper.vim and a couple of Ruby scripts to
extract and execute the code samples.  Works pretty well, although I
think I'll have to write another book or two before I really grok those
XSLT scripts...

Yours,

Tom

>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.