To do this all it takes is a simple php script.
If you remember parameters from DOS, it is jsut one list of words or symbols separated by spaces. Contrary to popular belief, this parameter list is one large variable in a program that gets parsed into smaller variables. That is exactly what we do for multiple options.
As an example, I'm going to use a simple highlight command (I don't know if this is the one m^e uses, but it is close enough for our purposes).
The TAG looks like this (angle brackets replace square brackets): <HIGHLIGHT = color>stuff you want highlighted</HIGHLIGHT>
The code for this looks like so:
<span style="background-color: {option}">{content}</span>
But if what if we want to edit the foreground color as well?
First create your single string of parameters separated by a space for the tag:
<HIGHLIGHT = backcolor forecolor>content</HIGHLIGHT>
Now for the code, simply use a php script and split the parameter list:
CODE
<?php
$param = {option}; //place the options in param
list($fore, $back) = split(" ", $param); //split the parameters
echo "<span style="color: $back; background-color: $fore;">{content}</span>
?>"; //send the style to the browser
$param = {option}; //place the options in param
list($fore, $back) = split(" ", $param); //split the parameters
echo "<span style="color: $back; background-color: $fore;">{content}</span>
?>"; //send the style to the browser
It's that simple! If you want to allow the second parameter to have a default value then insert this code before echoing the span
CODE
if (!$back) {
$back = "black";
}

