[OT] HTML and TOCs (was RE: [cvsnt] Re: Synchronizing two CVS servers)

Peter Crowther Peter.Crowther at melandra.com
Wed Dec 1 09:54:29 GMT 2004

Community technical support mailing list was retired 2010 and replaced with a professional technical support team. For assistance please contact: Pre-sales Technical support via email to sales@march-hare.com.

> From: Czarnowski, Aric [mailto:aczarnowski at unimax.com] 
> My company is full of people that continue to use MS-Word for simple
> design docs, white papers and other internal notes.  The reason they
> always give is "it does table of contents automatically."

<Chuckle>.  Just for fun, I once wrote an automatic TOC generator for
HTML.  It was an ex script (I tend to use vi [don't ask], so ex was
natural for this) that added <a name=...> to all the headings, stripped
all the <hn>...</hn>, moved them to the end of the file in order with a
marker line above them, then modified that into nested <ol>s, then
modified the names into hrefs so that they linked back into the body of
the document, then looked for a marker in the main text of 'INSERT TOC
HERE' and did just that.

I probably still have the code somewhere.

		- Peter

More information about the cvsnt mailing list
Download the latest CVSNT, TortosieCVS, WinCVS etc. for Windows 8 etc.
@CVSNT on Twitter   CVSNT on Facebook