I'm sorry but I do not get the errors for when the t turns into a m :s strange.
Try this for the gradient problem...
After
code:
if(param==="(li)"){ret = true}
press enter a few times and then put
code:
if(param==="[c=1]"){ret = true}
if(param==="[/c=1]"){ret = true}
etc etc
Tell me if it works. Tried it and it doesn't work. I will try to fix it.