discuss: Maintaining program listings
Subject:
Re: Maintaining program listings
From:
Alexander Bartolich ####@####.####
Date:
24 Jun 2002 14:03:00 -0000
Message-Id: <18974.1024927352@www51.gmx.net>
Charles Curley wrote:
> [...] Had I known about your method when I was
> working on my HOWTO, I probably would have used it.
Actually I though about a pre-processor stage and inclusion
through a system entity myself. But what I intended was a
program listing with markup and hyperlinks.
It starts with
sed -e "s/&/&/g" -e "s/</</g" -e "s/>/>/g"
and should also do
s#foo#<link linkend="foo"><function>foo</function></link>#g
However,
void foo()
should become
<anchor id="foo"><type>void</type> <function>foo</function>()
and this far beyond a simple script.
That's why I was interested in your solution.
--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net