What wacko allows now?
The basic formating allows only for a three colors: blue, red, green.
blue color
red (emphasis)
What about yellow? What about indigo? And what about background colors? I asked myself these questions.
What you can get?
Here is the result of my attempt to improve the wacko by adding more colors. Actualy more than 140 colors.
The
syntax is the same as it is in the original formatting. The only extension is that ?? starts and ends setting the background color. You could get colors like this:
lightblue !!(lightblue) lightblue!!
plum background ??(plum) plum background??
or even something like this:
bold lime fore color and indigo background **??(indigo)!!(lime) bold lime fore color and indigo background!!??**
Here are the colors you may choose from as displayed at
Wikipedia:
| color |
hexadecimal |
color |
hexadecimal |
| indianred |
#cd5c5c |
darksalmon |
#e9967a |
| lightcoral |
#f08080 |
salmon |
#fa8072 |
| orangered |
#ff4500 |
red |
#ff0000 |
| crimson |
#dc143c |
firebrick |
#b22222 |
| darkred |
#8b0000 |
mediumvioletred |
#c71585 |
| pink |
#ffc0cb |
lightpink |
#ffb6c1 |
| hotpink |
#ff69b4 |
deeppink |
#ff1493 |
| palevioletred |
#db7093 |
darkkhaki |
#bdb76b |
| khaki |
#f0e68c |
palegoldenrod |
#eee8aa |
| lightgoldenrodyellow |
#fafad2 |
lightyellow |
#ffffe0 |
| lemonchiffon |
#fffacd |
yellow |
#ffff00 |
| gold |
#ffd700 |
papayawhip |
#ffefd5 |
| moccasin |
#ffe4b5 |
peachpuff |
#ffdab9 |
| cyan |
#00ffff |
aqua |
#00ffff |
| aquamarine |
#7fffd4 |
turquoise |
#40e0d0 |
| mediumturquoise |
#48d1cc |
darkturquoise |
#00ced1 |
| cadetblue |
#5f9ea0 |
slategray |
#708090 |
| lightcyan |
#e0ffff |
paleturquoise |
#afeeee |
| powderblue |
#b0e0e6 |
lightsteelblue |
#b0c4de |
| steelblue |
#4682b4 |
lightblue |
#add8e6 |
| skyblue |
#87ceeb |
lightskyblue |
#87cefa |
| deepskyblue |
#00bfff |
cornflowerblue |
#6495ed |
| royalblue |
#4169e1 |
mediumslateblue |
#7b68ee |
| dodgerblue |
#1e90ff |
blue |
#0000ff |
| mediumblue |
#0000cd |
darkblue |
#00008b |
| navy |
#000080 |
midnightblue |
#191970 |
| lightsalmon |
#ffa07a |
orange |
#ffa500 |
| darkorange |
#ff8c00 |
coral |
#ff7f50 |
| tomato |
#ff6347 |
orangered |
#ff4500 |
| aquamarine |
#7fffd4 |
mediumspringgreen |
#00fa9a |
| springgreen |
#00ff7f |
palegreen |
#98fb98 |
| greenyellow |
#adff2f |
chartreuse |
#7fff00 |
| lawngreen |
#7cfc00 |
lime |
#00ff00 |
| lightgreen |
#90ee90 |
yellowgreen |
#9acd32 |
| limegreen |
#32cd32 |
mediumseagreen |
#3cb371 |
| darkseagreen |
#8fbc8f |
forestgreen |
#228b22 |
| seagreen |
#2e8b57 |
green |
#008000 |
| olivedrab |
#6b8e23 |
olive |
#808000 |
| darkolivegreen |
#556b2f |
darkgreen |
#006400 |
| mediumaquamarine |
#66cdaa |
turquoise |
#40e0d0 |
| lightseagreen |
#20b2aa |
darkcyan |
#008b8b |
| teal |
#008080 |
lavender |
#e6e6fa |
| thistle |
#d8bfd8 |
plum |
#dda0dd |
| violet |
#ee82ee |
fuchsia |
#ff00ff |
| magenta |
#ff00ff |
orchid |
#da70d6 |
| mediumorchid |
#ba55d3 |
darkorchid |
#9932cc |
| blueviolet |
#8a2be2 |
darkviolet |
#9400d3 |
| mediumpurple |
#9370db |
slateblue |
#6a5acd |
| purple |
#800080 |
darkmagenta |
#8b008b |
| darkslateblue |
#483d8b |
indigo |
#4b0082 |
| honeydew |
#f0fff0 |
mintcream |
#f5fffa |
| azure |
#f0ffff |
aliceblue |
#f0f8ff |
| ghostwhite |
#f8f8ff |
whitesmoke |
#f5f5f5 |
| lavenderblush |
#fff0f5 |
mistyrose |
#ffe4e1 |
| antiquewhite |
#faebd7 |
seashell |
#fff5ee |
| snow |
#fffafa |
white |
#ffffff |
| beige |
#f5f5dc |
linen |
#faf0e6 |
| oldlace |
#fdf5e6 |
floralwhite |
#fffaf0 |
| ivory |
#fffff0 |
gainsboro |
#dcdcdc |
| lightgrey |
#d3d3d3 |
silver |
#c0c0c0 |
| darkgray |
#a9a9a9 |
gray |
#808080 |
| dimgray |
#696969 |
darkslategray |
#2f4f4f |
| lightslategray |
#778899 |
slategray |
#708090 |
| cornsilk |
#fff8dc |
blanchedalmond |
#ffebcd |
| bisque |
#ffe4c4 |
navajowhite |
#ffdead |
| wheat |
#f5deb3 |
sandybrown |
#f4a460 |
| goldenrod |
#daa520 |
darkgoldenrod |
#b8860b |
| peru |
#cd853f |
chocolate |
#d2691e |
| maroon |
#800000 |
saddlebrown |
#8b4513 |
| brown |
#a52a2a |
sienna |
#a0522d |
| darkred |
#8b0000 |
burlywood |
#deb887 |
| tan |
#d2b48c |
rosybrown |
#bc8f8f |
| black |
#000000 |
|
|
What you need to do
1. Open the wakka.css file in your favorite theme and paste the following at the end:
.cl-indianred {color: #cd5c5c;}
.cl-lightcoral {color: #f08080;}
.cl-orangered {color: #ff4500;}
.cl-crimson {color: #dc143c;}
.cl-darkred {color: #8b0000;}
.cl-pink {color: #ffc0cb;}
.cl-hotpink {color: #ff69b4;}
.cl-palevioletred {color: #db7093;}
.cl-khaki {color: #f0e68c;}
.cl-lightgoldenrodyellow {color: #fafad2;}
.cl-lemonchiffon {color: #fffacd;}
.cl-gold {color: #ffd700;}
.cl-moccasin {color: #ffe4b5;}
.cl-cyan {color: #00ffff;}
.cl-aquamarine {color: #7fffd4;}
.cl-mediumturquoise {color: #48d1cc;}
.cl-cadetblue {color: #5f9ea0;}
.cl-lightcyan {color: #e0ffff;}
.cl-powderblue {color: #b0e0e6;}
.cl-steelblue {color: #4682b4;}
.cl-skyblue {color: #87ceeb;}
.cl-deepskyblue {color: #00bfff;}
.cl-royalblue {color: #4169e1;}
.cl-dodgerblue {color: #1e90ff;}
.cl-mediumblue {color: #0000cd;}
.cl-navy {color: #000080;}
.cl-lightsalmon {color: #ffa07a;}
.cl-darkorange {color: #ff8c00;}
.cl-tomato {color: #ff6347;}
.cl-aquamarine {color: #7fffd4;}
.cl-springgreen {color: #00ff7f;}
.cl-greenyellow {color: #adff2f;}
.cl-lawngreen {color: #7cfc00;}
.cl-lightgreen {color: #90ee90;}
.cl-limegreen {color: #32cd32;}
.cl-darkseagreen {color: #8fbc8f;}
.cl-seagreen {color: #2e8b57;}
.cl-olivedrab {color: #6b8e23;}
.cl-darkolivegreen {color: #556b2f;}
.cl-mediumaquamarine {color: #66cdaa;}
.cl-lightseagreen {color: #20b2aa;}
.cl-teal {color: #008080;}
.cl-thistle {color: #d8bfd8;}
.cl-violet {color: #ee82ee;}
.cl-magenta {color: #ff00ff;}
.cl-mediumorchid {color: #ba55d3;}
.cl-blueviolet {color: #8a2be2;}
.cl-mediumpurple {color: #9370db;}
.cl-purple {color: #800080;}
.cl-darkslateblue {color: #483d8b;}
.cl-honeydew {color: #f0fff0;}
.cl-azure {color: #f0ffff;}
.cl-ghostwhite {color: #f8f8ff;}
.cl-lavenderblush {color: #fff0f5;}
.cl-antiquewhite {color: #faebd7;}
.cl-snow {color: #fffafa;}
.cl-beige {color: #f5f5dc;}
.cl-oldlace {color: #fdf5e6;}
.cl-ivory {color: #fffff0;}
.cl-lightgrey {color: #d3d3d3;}
.cl-darkgray {color: #a9a9a9;}
.cl-dimgray {color: #696969;}
.cl-lightslategray {color: #778899;}
.cl-cornsilk {color: #fff8dc;}
.cl-bisque {color: #ffe4c4;}
.cl-wheat {color: #f5deb3;}
.cl-goldenrod {color: #daa520;}
.cl-peru {color: #cd853f;}
.cl-maroon {color: #800000;}
.cl-brown {color: #a52a2a;}
.cl-darkred {color: #8b0000;}
.cl-tan {color: #d2b48c;}
.cl-black {color: #000000;}
.cl-darksalmon {color: #e9967a;}
.cl-salmon {color: #fa8072;}
.cl-red {color: #ff0000;}
.cl-firebrick {color: #b22222;}
.cl-mediumvioletred {color: #c71585;}
.cl-lightpink {color: #ffb6c1;}
.cl-deeppink {color: #ff1493;}
.cl-darkkhaki {color: #bdb76b;}
.cl-palegoldenrod {color: #eee8aa;}
.cl-lightyellow {color: #ffffe0;}
.cl-yellow {color: #ffff00;}
.cl-papayawhip {color: #ffefd5;}
.cl-peachpuff {color: #ffdab9;}
.cl-aqua {color: #00ffff;}
.cl-turquoise {color: #40e0d0;}
.cl-darkturquoise {color: #00ced1;}
.cl-slategray {color: #708090;}
.cl-paleturquoise {color: #afeeee;}
.cl-lightsteelblue {color: #b0c4de;}
.cl-lightblue {color: #add8e6;}
.cl-lightskyblue {color: #87cefa;}
.cl-cornflowerblue {color: #6495ed;}
.cl-mediumslateblue {color: #7b68ee;}
.cl-blue {color: #0000ff;}
.cl-darkblue {color: #00008b;}
.cl-midnightblue {color: #191970;}
.cl-orange {color: #ffa500;}
.cl-coral {color: #ff7f50;}
.cl-orangered {color: #ff4500;}
.cl-mediumspringgreen {color: #00fa9a;}
.cl-palegreen {color: #98fb98;}
.cl-chartreuse {color: #7fff00;}
.cl-lime {color: #00ff00;}
.cl-yellowgreen {color: #9acd32;}
.cl-mediumseagreen {color: #3cb371;}
.cl-forestgreen {color: #228b22;}
.cl-green {color: #008000;}
.cl-olive {color: #808000;}
.cl-darkgreen {color: #006400;}
.cl-turquoise {color: #40e0d0;}
.cl-darkcyan {color: #008b8b;}
.cl-lavender {color: #e6e6fa;}
.cl-plum {color: #dda0dd;}
.cl-fuchsia {color: #ff00ff;}
.cl-orchid {color: #da70d6;}
.cl-darkorchid {color: #9932cc;}
.cl-darkviolet {color: #9400d3;}
.cl-slateblue {color: #6a5acd;}
.cl-darkmagenta {color: #8b008b;}
.cl-indigo {color: #4b0082;}
.cl-mintcream {color: #f5fffa;}
.cl-aliceblue {color: #f0f8ff;}
.cl-whitesmoke {color: #f5f5f5;}
.cl-mistyrose {color: #ffe4e1;}
.cl-seashell {color: #fff5ee;}
.cl-white {color: #ffffff;}
.cl-linen {color: #faf0e6;}
.cl-floralwhite {color: #fffaf0;}
.cl-gainsboro {color: #dcdcdc;}
.cl-silver {color: #c0c0c0;}
.cl-gray {color: #808080;}
.cl-darkslategray {color: #2f4f4f;}
.cl-slategray {color: #708090;}
.cl-blanchedalmond {color: #ffebcd;}
.cl-navajowhite {color: #ffdead;}
.cl-sandybrown {color: #f4a460;}
.cl-darkgoldenrod {color: #b8860b;}
.cl-chocolate {color: #d2691e;}
.cl-saddlebrown {color: #8b4513;}
.cl-sienna {color: #a0522d;}
.cl-burlywood {color: #deb887;}
.mark { color: #00000; background:#ffaaaa; }
.mark-indianred {background: #cd5c5c;}
.mark-lightcoral {background: #f08080;}
.mark-orangered {background: #ff4500;}
.mark-crimson {background: #dc143c;}
.mark-darkred {background: #8b0000;}
.mark-pink {background: #ffc0cb;}
.mark-hotpink {background: #ff69b4;}
.mark-palevioletred {background: #db7093;}
.mark-khaki {background: #f0e68c;}
.mark-lightgoldenrodyellow {background: #fafad2;}
.mark-lemonchiffon {background: #fffacd;}
.mark-gold {background: #ffd700;}
.mark-moccasin {background: #ffe4b5;}
.mark-cyan {background: #00ffff;}
.mark-aquamarine {background: #7fffd4;}
.mark-mediumturquoise {background: #48d1cc;}
.mark-cadetblue {background: #5f9ea0;}
.mark-lightcyan {background: #e0ffff;}
.mark-powderblue {background: #b0e0e6;}
.mark-steelblue {background: #4682b4;}
.mark-skyblue {background: #87ceeb;}
.mark-deepskyblue {background: #00bfff;}
.mark-royalblue {background: #4169e1;}
.mark-dodgerblue {background: #1e90ff;}
.mark-mediumblue {background: #0000cd;}
.mark-navy {background: #000080;}
.mark-lightsalmon {background: #ffa07a;}
.mark-darkorange {background: #ff8c00;}
.mark-tomato {background: #ff6347;}
.mark-aquamarine {background: #7fffd4;}
.mark-springgreen {background: #00ff7f;}
.mark-greenyellow {background: #adff2f;}
.mark-lawngreen {background: #7cfc00;}
.mark-lightgreen {background: #90ee90;}
.mark-limegreen {background: #32cd32;}
.mark-darkseagreen {background: #8fbc8f;}
.mark-seagreen {background: #2e8b57;}
.mark-olivedrab {background: #6b8e23;}
.mark-darkolivegreen {background: #556b2f;}
.mark-mediumaquamarine {background: #66cdaa;}
.mark-lightseagreen {background: #20b2aa;}
.mark-teal {background: #008080;}
.mark-thistle {background: #d8bfd8;}
.mark-violet {background: #ee82ee;}
.mark-magenta {background: #ff00ff;}
.mark-mediumorchid {background: #ba55d3;}
.mark-blueviolet {background: #8a2be2;}
.mark-mediumpurple {background: #9370db;}
.mark-purple {background: #800080;}
.mark-darkslateblue {background: #483d8b;}
.mark-honeydew {background: #f0fff0;}
.mark-azure {background: #f0ffff;}
.mark-ghostwhite {background: #f8f8ff;}
.mark-lavenderblush {background: #fff0f5;}
.mark-antiquewhite {background: #faebd7;}
.mark-snow {background: #fffafa;}
.mark-beige {background: #f5f5dc;}
.mark-oldlace {background: #fdf5e6;}
.mark-ivory {background: #fffff0;}
.mark-lightgrey {background: #d3d3d3;}
.mark-darkgray {background: #a9a9a9;}
.mark-dimgray {background: #696969;}
.mark-lightslategray {background: #778899;}
.mark-cornsilk {background: #fff8dc;}
.mark-bisque {background: #ffe4c4;}
.mark-wheat {background: #f5deb3;}
.mark-goldenrod {background: #daa520;}
.mark-peru {background: #cd853f;}
.mark-maroon {background: #800000;}
.mark-brown {background: #a52a2a;}
.mark-darkred {background: #8b0000;}
.mark-tan {background: #d2b48c;}
.mark-black {background: #000000;}
.mark-darksalmon {background: #e9967a;}
.mark-salmon {background: #fa8072;}
.mark-red {background: #ff0000;}
.mark-firebrick {background: #b22222;}
.mark-mediumvioletred {background: #c71585;}
.mark-lightpink {background: #ffb6c1;}
.mark-deeppink {background: #ff1493;}
.mark-darkkhaki {background: #bdb76b;}
.mark-palegoldenrod {background: #eee8aa;}
.mark-lightyellow {background: #ffffe0;}
.mark-yellow {background: #ffff00;}
.mark-papayawhip {background: #ffefd5;}
.mark-peachpuff {background: #ffdab9;}
.mark-aqua {background: #00ffff;}
.mark-turquoise {background: #40e0d0;}
.mark-darkturquoise {background: #00ced1;}
.mark-slategray {background: #708090;}
.mark-paleturquoise {background: #afeeee;}
.mark-lightsteelblue {background: #b0c4de;}
.mark-lightblue {background: #add8e6;}
.mark-lightskyblue {background: #87cefa;}
.mark-cornflowerblue {background: #6495ed;}
.mark-mediumslateblue {background: #7b68ee;}
.mark-blue {background: #0000ff;}
.mark-darkblue {background: #00008b;}
.mark-midnightblue {background: #191970;}
.mark-orange {background: #ffa500;}
.mark-coral {background: #ff7f50;}
.mark-orangered {background: #ff4500;}
.mark-mediumspringgreen {background: #00fa9a;}
.mark-palegreen {background: #98fb98;}
.mark-chartreuse {background: #7fff00;}
.mark-lime {background: #00ff00;}
.mark-yellowgreen {background: #9acd32;}
.mark-mediumseagreen {background: #3cb371;}
.mark-forestgreen {background: #228b22;}
.mark-green {background: #008000;}
.mark-olive {background: #808000;}
.mark-darkgreen {background: #006400;}
.mark-turquoise {background: #40e0d0;}
.mark-darkcyan {background: #008b8b;}
.mark-lavender {background: #e6e6fa;}
.mark-plum {background: #dda0dd;}
.mark-fuchsia {background: #ff00ff;}
.mark-orchid {background: #da70d6;}
.mark-darkorchid {background: #9932cc;}
.mark-darkviolet {background: #9400d3;}
.mark-slateblue {background: #6a5acd;}
.mark-darkmagenta {background: #8b008b;}
.mark-indigo {background: #4b0082;}
.mark-mintcream {background: #f5fffa;}
.mark-aliceblue {background: #f0f8ff;}
.mark-whitesmoke {background: #f5f5f5;}
.mark-mistyrose {background: #ffe4e1;}
.mark-seashell {background: #fff5ee;}
.mark-white {background: #ffffff;}
.mark-linen {background: #faf0e6;}
.mark-floralwhite {background: #fffaf0;}
.mark-gainsboro {background: #dcdcdc;}
.mark-silver {background: #c0c0c0;}
.mark-gray {background: #808080;}
.mark-darkslategray {background: #2f4f4f;}
.mark-slategray {background: #708090;}
.mark-blanchedalmond {background: #ffebcd;}
.mark-navajowhite {background: #ffdead;}
.mark-sandybrown {background: #f4a460;}
.mark-darkgoldenrod {background: #b8860b;}
.mark-chocolate {background: #d2691e;}
.mark-saddlebrown {background: #8b4513;}
.mark-sienna {background: #a0522d;}
.mark-burlywood {background: #deb887;}
.mark-rosybrown {background: #bc8f8f;}
2. Open file \formatters\classes\WackoFormatter.php
2.1. Find the lines in the beginig:
var $colors = array(
"red" => "red" ,
"green" => "green",
"blue" => "blue" ,
..........,
);
and replace them with:
var $colors = array(
"indianred" => "indianred" ,
"lightcoral" => "lightcoral" ,
"orangered" => "orangered" ,
"crimson" => "crimson" ,
"darkred" => "darkred" ,
"pink" => "pink" ,
"hotpink" => "hotpink" ,
"palevioletred" => "palevioletred" ,
"khaki" => "khaki" ,
"lightgoldenrodyellow" => "lightgoldenrodyellow" ,
"lemonchiffon" => "lemonchiffon" ,
"gold" => "gold" ,
"moccasin" => "moccasin" ,
"cyan" => "cyan" ,
"aquamarine" => "aquamarine" ,
"mediumturquoise" => "mediumturquoise" ,
"cadetblue" => "cadetblue" ,
"lightcyan" => "lightcyan" ,
"powderblue" => "powderblue" ,
"steelblue" => "steelblue" ,
"skyblue" => "skyblue" ,
"deepskyblue" => "deepskyblue" ,
"royalblue" => "royalblue" ,
"dodgerblue" => "dodgerblue" ,
"mediumblue" => "mediumblue" ,
"navy" => "navy" ,
"lightsalmon" => "lightsalmon" ,
"darkorange" => "darkorange" ,
"tomato" => "tomato" ,
"aquamarine" => "aquamarine" ,
"springgreen" => "springgreen" ,
"greenyellow" => "greenyellow" ,
"lawngreen" => "lawngreen" ,
"lightgreen" => "lightgreen" ,
"limegreen" => "limegreen" ,
"darkseagreen" => "darkseagreen" ,
"seagreen" => "seagreen" ,
"olivedrab" => "olivedrab" ,
"darkolivegreen" => "darkolivegreen" ,
"mediumaquamarine" => "mediumaquamarine" ,
"lightseagreen" => "lightseagreen" ,
"teal" => "teal" ,
"thistle" => "thistle" ,
"violet" => "violet" ,
"magenta" => "magenta" ,
"mediumorchid" => "mediumorchid" ,
"blueviolet" => "blueviolet" ,
"mediumpurple" => "mediumpurple" ,
"purple" => "purple" ,
"darkslateblue" => "darkslateblue" ,
"honeydew" => "honeydew" ,
"azure" => "azure" ,
"ghostwhite" => "ghostwhite" ,
"lavenderblush" => "lavenderblush" ,
"antiquewhite" => "antiquewhite" ,
"snow" => "snow" ,
"beige" => "beige" ,
"oldlace" => "oldlace" ,
"ivory" => "ivory" ,
"lightgrey" => "lightgrey" ,
"darkgray" => "darkgray" ,
"dimgray" => "dimgray" ,
"lightslategray" => "lightslategray" ,
"cornsilk" => "cornsilk" ,
"bisque" => "bisque" ,
"wheat" => "wheat" ,
"goldenrod" => "goldenrod" ,
"peru" => "peru" ,
"maroon" => "maroon" ,
"brown" => "brown" ,
"darkred" => "darkred" ,
"tan" => "tan" ,
"black" => "black" ,
"darksalmon" => "darksalmon" ,
"salmon" => "salmon" ,
"red" => "red" ,
"firebrick" => "firebrick" ,
"mediumvioletred" => "mediumvioletred" ,
"lightpink" => "lightpink" ,
"deeppink" => "deeppink" ,
"darkkhaki" => "darkkhaki" ,
"palegoldenrod" => "palegoldenrod" ,
"lightyellow" => "lightyellow" ,
"yellow" => "yellow" ,
"papayawhip" => "papayawhip" ,
"peachpuff" => "peachpuff" ,
"aqua" => "aqua" ,
"turquoise" => "turquoise" ,
"darkturquoise" => "darkturquoise" ,
"slategray" => "slategray" ,
"paleturquoise" => "paleturquoise" ,
"lightsteelblue" => "lightsteelblue" ,
"lightblue" => "lightblue" ,
"lightskyblue" => "lightskyblue" ,
"cornflowerblue" => "cornflowerblue" ,
"mediumslateblue" => "mediumslateblue" ,
"blue" => "blue" ,
"darkblue" => "darkblue" ,
"midnightblue" => "midnightblue" ,
"orange" => "orange" ,
"coral" => "coral" ,
"orangered" => "orangered" ,
"mediumspringgreen" => "mediumspringgreen" ,
"palegreen" => "palegreen" ,
"chartreuse" => "chartreuse" ,
"lime" => "lime" ,
"yellowgreen" => "yellowgreen" ,
"mediumseagreen" => "mediumseagreen" ,
"forestgreen" => "forestgreen" ,
"green" => "green" ,
"olive" => "olive" ,
"darkgreen" => "darkgreen" ,
"turquoise" => "turquoise" ,
"darkcyan" => "darkcyan" ,
"lavender" => "lavender" ,
"plum" => "plum" ,
"fuchsia" => "fuchsia" ,
"orchid" => "orchid" ,
"darkorchid" => "darkorchid" ,
"darkviolet" => "darkviolet" ,
"slateblue" => "slateblue" ,
"darkmagenta" => "darkmagenta" ,
"indigo" => "indigo" ,
"mintcream" => "mintcream" ,
"aliceblue" => "aliceblue" ,
"whitesmoke" => "whitesmoke" ,
"mistyrose" => "mistyrose" ,
"seashell" => "seashell" ,
"white" => "white" ,
"linen" => "linen" ,
"floralwhite" => "floralwhite" ,
"gainsboro" => "gainsboro" ,
"silver" => "silver" ,
"gray" => "gray" ,
"darkslategray" => "darkslategray" ,
"slategray" => "slategray" ,
"blanchedalmond" => "blanchedalmond" ,
"navajowhite" => "navajowhite" ,
"sandybrown" => "sandybrown" ,
"darkgoldenrod" => "darkgoldenrod" ,
"chocolate" => "chocolate" ,
"saddlebrown" => "saddlebrown" ,
"sienna" => "sienna" ,
"burlywood" => "burlywood" ,
"rosybrown" => "rosybrown" ,
);
2.2. Find the lines:
// cite
else if (preg_match("/^\'\'(.*?)\'\'$/s", $thing, $matches) ||
preg_match("/^\!\!((\((\S*?)\)(.*?\S))|(\S.*?\S)|(\S))\!\!$/s", $thing, $matches))
{
$this->br = 1;
if ($matches[3] && $color = $this->colors[$matches[3]])
{
return "<span class=\"cl-".$color."\">".preg_replace_callback($this->LONGREGEXP, $callback, $matches[4])."</span>";
}
return "<span class=\"cite\">".preg_replace_callback($this->LONGREGEXP, $callback, $matches[1])."</span>";
}
else if (preg_match("/^\?\?((\S.*?\S)|(\S))\?\?$/s", $thing, $matches))
{
$this->br = 1;
return "<span class=\"mark\">".preg_replace_callback($this->LONGREGEXP, $callback, $matches[1])."</span>";
}
// urls
and replace them with:
// cite
else if (preg_match("/^\'\'(.*?)\'\'$/s", $thing, $matches) ||
preg_match("/^\!\!((\((\S*?)\)(.*?\S))|(\S.*?\S)|(\S))\!\!$/s", $thing, $matches))
{
$this->br = 1;
if ($matches[3] && $color = $this->colors[$matches[3]])
{
return "<span class=\"cl-".$color."\">".preg_replace_callback($this->LONGREGEXP, $callback, $matches[4])."</span>";
}
return "<span class=\"cite\">".preg_replace_callback($this->LONGREGEXP, $callback, $matches[1])."</span>";
}
else if (preg_match("/^\?\?((\((\S*?)\)(.*?\S))|(\S.*?\S)|(\S))\?\?$/s", $thing, $matches))
{
$this->br = 1;
if ($matches[3] && $color = $this->colors[$matches[3]])
{
return "<span class=\"mark-".$color."\">".preg_replace_callback($this->LONGREGEXP, $callback, $matches[4])."</span>";
}
return "<span class=\"mark\">".preg_replace_callback($this->LONGREGEXP, $callback, $matches[1])."</span>";
}
// urls
You are set to go.