Revision [13677]

This is an old revision of SandBox made by 220.233.163.4 on 2006-03-31 02:31:06.

 

Test your formatting skills here


See also:

Note: this server is configured to use a western charset encoding (ISO-8859-1). This results in non-western characters being stored as unicode entities and displayed as such in the edit screen. To learn more on different charset support, please refer to WikkaLocalization.
Read this first
You are free to play with Wikka's FormattingRules syntax on this page. Double click anywhere to open the edit screen.
Please do not remove the main header and this paragraph while editing the page and start editing under the horizontal rule BELOW
 




This is a test formatting java code:

  1. public class TestWiki {
  2.    public TestWiki() {}
  3. }


This is a test formatting PHP code:

  1. public class TestWiki {
  2.    public TestWiki() {}
  3. }


NouvellePage
NewPage
hello
one
two
uneautrepage




HTML::WikiConverter


HTML::WikiConverter is a Perl module for converting HTML to wiki markup for a variety of different wiki engines. Currently, it at least partially supports twelve dialects:


I'd really like to add support for TWiki, but the way it handles bold italics (and possibly other nested elements) is very disappointing.

Installation


It's very easy to use HTML::WikiConverter. Grab a copy from your favorite CPAN mirror and then run something like this:

#!/usr/bin/perl -w
use HTML::WikiConverter;
my $wc = new HTML::WikiConverter( dialect => 'MediaWiki' );
print $wc->html2wiki();


Alternatively, you might want to try HTML::WikiConverter's command line interface; it's a program called html2wiki and it's stored in bin/html2wiki.

Dialect features


Unfortunately, I haven't managed to implement every feature of each supported dialect. My initial goal was simply to create a converter for MediaWiki (I am a Wikipediholic, after all :-), but then PhpWiki's Reini Urban suggested that I be more ambitious and provide the dialect interface. And so far I've been really happy with the progress.

Bugs


Of course there are always bugs. Luckily, CPAN comes to the rescue again with its bug tracking service for module authors.

But where would we be without bugs? My Pacman frog sure wouldn't be happy without 'em! Do you know what a Pacman frog Pacman frog is? Or how about an Otago skink? Aplysia californica? Why, these are some of my favorite animals!

My favorite animals
Animal Region Physical traits Food
Pacman frog Gran Chaco (Argentina) Half mouth, half stomach (quite literally!) Crickets, fish, etc.
Otago skink Otago (New Zealand) Black, yellow, and green camouflage Insects, fruits, small lizards
Aplysia california California Deep red-colored sea hare Red and brown seaweed

Common features


Images


Many dialects allow embedded images, either from local or remote stores.

Google logo

Lists


Wikis also support lists, even extensively nested ones. Some rely on leading characters to determine nest levels, while others rely on spaces or (egad!) tabs.

      1. fee
      1. fie
      1. foe

Some wikis support definition lists, though they're often used inappropriately (as in MediaWiki, which uses them for indentation).

PerlPathologically eclectic rubbish listerPOEPerl on ecstacy
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki