This page looks plain and unstyled because you're using a non-standard compliant browser. To see it in its best form, please upgrade to a browser that supports web standards. It's free and painless.

Paul's Time Sink

| Main | Albums |

« | »

converting html to wiki

Paul Westbrook | 11 October, 2006 00:03

I am used to writing html documents, but now it seems that everything is done with wikis.  So I needed to figure out how to convert html documents to use wiki markup.

The HTML::WikiConverter perl module makes this conversion very easy.  This simple program outputs text with wiki tags from an html file:

#!/usr/bin/perl -w 
 
use HTML::WikiConverter;
my $wc = new HTML::WikiConverter( dialect => 'MoinMoin' );
 
# Or fetch it from a file
print $wc->html2wiki( file => "file.html" );
 

Technorati tags: , , ,

Add comment

Topic

Text

Your name

Your email address

Your personal page (if any)




Powered by LifeType
Design by Book of Styles