MyBB Community Forums

Full Version: Colors
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,
can I somehow make single MyCode tag?

For example:
I write '&1 test' to thread and the text will be blue.

Can I do it?
How will it know where to end the color? Will it only change the color for a single word? To the end of the line?
i'm not sure if OP still wants it but here it is (this should work):

Regular Expression
\[blue\](.*?)\[/blue\]

Replacement
<p style="color: blue">$1</p>

How to use it
[blue]test[/blue]

^everything you write between [blue] and [/blue] will be with blue color.