2010-03-02, 02:46 AM
Here are two MyCodes I just came up with.
One is to add a background color to text, the other is to add a background image to text.
Background Color
Name:
Regular Expression:
Replacement:
Output:
[attachment=17495]
Background Image
Name:
Regular Expression:
Replacement:
Output:
[attachment=17496]
One is to add a background color to text, the other is to add a background image to text.
Background Color
Name:
Background Color
Regular Expression:
\[bg=(.*?)\](.*?)\[/bg\]
Replacement:
<span style="background-color: $1;">$2</span>
Output:
[attachment=17495]
Background Image
Name:
Background Image
Regular Expression:
\[bg color=(.*?) image=(.*?) position=(.*?) (.*?) repeat=(.*?) padding=(.*?)\](.*?)\[/bg\]
Replacement:
<span style="background: $1 url($2) $3 $4 repeat-$5;padding: $6;">$7</span>
Output:
[attachment=17496]