# MojoMojo formatter demo
This page demonstrates some of the available MojoMojo formatters. For a complete list of formatters, please check [MojoMojo::Formatter::](http://github.com/marcusramberg/mojomojo/blob/master/lib/MojoMojo/Formatter).
## ToC Formatter
Generates a table of contents with SEO-friendly and Unicode-aware anchor names. Takes two optional parameters: the start and end heading levels.
Generates a table of contents with [Search Engine Optimization](http://www.seop.com/)-friendly and Unicode-aware anchor names. Takes two optional parameters: the start and end heading levels.
* Reference: {{cpan MojoMojo::Formatter::TOC}}
* Syntax: <code>{</code>`{toc}}`
* Output:
{{toc}}
## Syntax highlighter for numerous languages
* Reference: {{cpan MojoMojo::Formatter::SyntaxHighlight}}
* Example output:
<pre lang="Perl">
#!/usr/bin/perl
print('Hello World!');
</pre>
## RSS Formatter
Processes a feed through {{cpan XML::Feed}}. Takes an optional parameters of how many items to display (most recent).
* Reference: {{cpan MojoMojo::Formatter::RSS}}
* Example:
{{feed://twitter.com/statuses/user_timeline/23054609.rss 3}}
* Example output:
{{feed://twitter.com/statuses/user_timeline/23054609.rss 3}}
Also optional, Available from CPAN.
## Microformatters
### CPAN Hyperlink
Converts <code>{</code>`{cpan My::Module}}` to a CPAN link to the module.
* Reference: {{cpan MojoMojo::Formatter::CPANHyperlink}}
* Example output: {{cpan WWW::Mechanize}}.
### Include
Transclude another page: <code>{</code>`{http://www.google.com}}`
### Redirect
Redirects the visitor to another wiki page, and displays a message about the redirection at the top of the landing page.
<code>{</code>`{redirect /new/location}}`
### Youtube
Useful during editing, as it only renders a frame with the video's dimensions instead of reloading the Flash file each time the preview gets updated.
<code>{</code>`{youtube http://www.youtube.com/watch?v=zmm56R0Nqis}}`
## Custom formatters
It's very easy to write your own formatter - you only have to override a format_content method and transform an input string into an output string. For more information, please see {{cpan MojoMojo::Formatter/WRITING YOUR OWN FORMATTER}}.