May. 10th, 2010

The rebuild was done a few days back. is now up.

Now I can concentrate on some documentation, and on Perl::Dist::Padre and the next version of Strawberry Perl.

But I needed a break for a few days, and my personal Perl code website at had been sadly neglected.

Previously, I had used a script on my laptop (since lost - the script, not the laptop) that used Perl::Tidy to do the formatting. The problem was, Perl::Tidy made some ugly HTML, and it didn't support having some of the links point back at an internal site. I had to run like 20 different regexes in my script, and they were different for every distribution. (I ended up deciding to store them in a YAML file.) Tedious work.

So I wrote a utility module that did what I wanted it to - to format Pod and syntax highlight Perl code into (X)HTML, and to do it in the same .html file, and to allow both internal and external linking.

That module has been released to CPAN as Pod::Simple::XHTML::BlendedCode. The repository for it is at - I wanted to experiment with Mercurial, and I think I like it! Less clumsy than Git as far as Windows support goes, too.

The syntax highlighting is done by passing code fragments to PPI::HTML, so it's described there.

The module should work on any operating system. The script I used to do the formatting, and 5 updated distributions, are now on the web site, and as I get around to it, I can process and upload a distribution in about 15-30 minutes. The only thing it doesn't do (yet) is create a fragment for the tree on the left side for me.



June 2011

192021 22232425

Style Credit

Page generated Oct. 17th, 2017 09:43 am
Powered by Dreamwidth Studios

Expand Cut Tags

No cut tags

Most Popular Tags