MyBB Community Forums

Full Version: MyCode for text background color
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i try like bellow, but not work

reguler expresion

\[bgcolor color=(.*?)\](.*?)\[/bgcolor\]


replacement
<span style="background-color:#$1;">$2</span>

usage
[bgcolor=#9966cc]text wkwkw[/bgcolor]
in the replacement code you have already used # for the color value.
so your usage should be without #
[bgcolor=9966cc]text wkwkw[/bgcolor]