https://www.icyphoenix.com/viewtopic.php?f=28&t=4785&p=32394#p32394
-----------------------------------
glenflet
Sun 28 Sep, 2008 08:28

Re: Adding New BBcode Tags
-----------------------------------
I had a look at that topic, but I don't see how that tells, me how to add ne BBcode tags.

I've got some javascript I want to use with BBcode.

i.e.[code linenumbers=false]<script language="javascript">
var text = "Hello World!"
var speed = 80
rainbow()
</script>[/code]

Where the BBcode would be [code linenumbers=false][rainbow speed=80]Hello World![/rainbow][/code]

i.e.[code linenumbers=false]<script language="javascript">
var text = "Hello World!"
var speed = 80
var basecolor = "#808080"
var textcolor = "#00ffff"
neonText()
</script>[/code]

Where the BBcode would be [code linenumbers=false][neon speed=80 basecolor=128,128,128 textcolor=0,255,255]Hello World![/neon][/code]

I also want to rename the existing rainbow to gradient.

I can make the php to generate the HTML output just fine, it just how to add the tags to the BBcode that I can't do, and how to tell it what variable I'm look for, to cofirm I understant that propely.


