Pick a selection with the buttons in the left margin, then click on one of the titles or subscribe to my RSS feed.

Sun, 22 Apr 2012 15:51:29 GMT
Generating LaTeX output from perltidy
Create syntax highlighted Perl source code for LaTeX

This article describes a quick solution of leveraging the popular Perl source code formatter perltidy in producing visually pleasing LaTeX output for all kinds of documentation. perltidy can output HTML using the command line option --html.
The perl script I present here parses the generated HTML file and generates LaTeX output. Of course there are many ways to improve this ad-hoc solution, but the source should be helpful if you are starting out developing a similar script.
The download package contains the script, an HTML file produced by perltidy when run on the script as input, and a sample PDF file from the LaTeX source generated by the script.

Zip file including source code and sample files
PDF script output of itself

Click the back button to return to your selection, or create a random one using the buttons in the margin.