← Prev in month ← Prev in thread

DOCBOOK-APPS: Re: Including C source code in a document

From
Karl Eichwalder <>
Date
2000-07-21T16:46:30+00:00
ID
Thread
DOCBOOK-APPS: Re: Including C source code in a document
Michael Wiedmann <> writes:

> Jorge Godoy wrote:
> ... 
> > This solution would require me to actually put the source in the
> > document. Isn't there any solution that allow me to get the C file as
> > an entity? This would be much more interesting since I'd always have
> ...
> 
> Sorry,
> I can't help you with this :(

<!DOCTYPE k [
<!ENTITY c SYSTEM "file.c">
<!ELEMENT k - - (#PCDATA)>
]>
<k>
<![ RCDATA [
&c;
]]>
</k>

Make sure file.c doesn't contain strings looking like General Entities.
It's better to preprocess file.c.

-- 
work :                           |          ------    ,__o
     : http://www.suse.de/~ke/             |         ------   _-\_<,
home :                      |        ------   (*)/'(*)
← Prev in month ← Prev in thread