discuss: Maintaining program listings


Previous by date: 24 Jun 2002 14:03:00 -0000 Re: Maintaining program listings, Charles Curley
Next by date: 24 Jun 2002 14:03:00 -0000 Re: Maintaining program listings, Pradeep Padala
Previous in thread: 24 Jun 2002 14:03:00 -0000 Re: Maintaining program listings, Charles Curley
Next in thread: 24 Jun 2002 14:03:00 -0000 Re: Maintaining program listings, Pradeep Padala

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/&/&amp;/g" -e "s/</&lt;/g" -e "s/>/&gt;/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


Previous by date: 24 Jun 2002 14:03:00 -0000 Re: Maintaining program listings, Charles Curley
Next by date: 24 Jun 2002 14:03:00 -0000 Re: Maintaining program listings, Pradeep Padala
Previous in thread: 24 Jun 2002 14:03:00 -0000 Re: Maintaining program listings, Charles Curley
Next in thread: 24 Jun 2002 14:03:00 -0000 Re: Maintaining program listings, Pradeep Padala


  ©The Linux Documentation Project, 2014. Listserver maintained by dr Serge Victor on ibiblio.org servers. See current spam statz.