MyBB Community Forums

Full Version: An easy MyCode developtment help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am in need of making a MyCode.

So what i want to make it is.

A code like

[official] Text HERE [/official]

With official it will change the text color to the official color defined when making mycodes, The color of the text should be changed to
this HTML color... #9370DB

Can be closed now , I have made it Big Grin
So you don't need any help?
If you have feel free to post it here.

(2012-10-05, 09:39 PM)JordanMussi Wrote: [ -> ]So you don't need any help?
Regular Expression:
\[official\](.*?)\[/official\]

HTML Replacement:
<span style="color: #9370DB;">$1</span>

Example in MyCode:
[official]Official Text Here[/official]

Output:
Quote:Official Text Here
(2012-10-06, 12:24 PM)JordanMussi Wrote: [ -> ]Regular Expression:
\[official\](.*?)\[/official\]

HTML Replacement:
<span style="color: #9370DB;">$1</span>

Example in MyCode:
[official]Official Text Here[/official]

Output:
Quote:Official Text Here

I have did a same but in different method Big Grin