I'd like to use txt2tags to document my Perl scripts.

I couldnt find anything relevant using Google, so I asked a
correspondent, off list -

Q. «How to write Perl documentation in txt2tags format?»
A. «Try podselect»

So I just made testfile.pl with documentation enclosed between «=pod»
and «=cut», as usual,
but written in format t2t, instead of format pod.

Then a tiny script ran
    (1) podselect, to extract the t2t lines, and
    (2) txt2tags, to transform the t2t to html.

Result at STDOUT:-
    «txt2tags wrote testfile.html
    «THAT TOOK 0.200652 SECONDS

Magic!

Many thanks to my correspondent. Posted here in the hopes that others
may benefit.


------------------------------------------------------------------------------
_______________________________________________
txt2tags-list mailing list
https://lists.sourceforge.net/lists/listinfo/txt2tags-list

Reply via email to