Extension:Colorize

What can this extension do?
Colorize text between and tags to make it to appear more fun.



Installation
As usual. Copy php code into a file named Colorize.php and put it in your MW extensions directory then change LocalSettings.php

Changes to LocalSettings.php
require_once('$IP/extensions/Colorize.php');

Code
 'Colorize',	'url' => 'http://www.mediawiki.org/wiki/Extension:Colorize',	'author' => 'Javier Valcarce Garcia',	'description' => 'It makes text to appear more fun', );

function wfColorizeSetup {

global $wgParser; $wgParser->setHook( "colorize", "wfColorizeRender" ); }

function wfColorizeRender( $input, $argv, &$parser ) {

// Character styles $input = utf8_decode($input); for ($i = 0; $i < strlen($input); $i++) {	$s = rand(0, 9) * 8 + 150; $w = rand(5, 9) * 100; $r = rand(20, 220); $g = rand(20, 220); $b = rand(20, 220);

$output .= '';

$output .= $input[$i]; $output .= ' '; }

return utf8_encode($output); } ?>