[BBCode] based on [CODE]

Mods, snippets and styles postet and supported by the users
Forum rules
As the forum title says this is for User Contributions
Post a support request in this forum and you will be banned!
Locked
User avatar
Benecore
BBCoder I
BBCoder I
Posts: 1
Joined: 02 May 2011, 09:06
Contact:

[BBCode] based on [CODE]

Post by Benecore »

Hi
I hope I'm in a good topic :) , or?

I have questions about add custom BBCode based on

Code: Select all

. I have installed BBCodeTagHighlight (Geshi) mod and i want add custom BBCodes according programming language.

For exmaple:
If i want highlight [b]C++[/b] language then i wrote code inside this:
[color=#0000FF][b]|code=cpp|here is the code|/code|[/b][/color]
but i want add custom BBCode like this:
[color=#0000FF][b][C++]here is the code[/C++][/b][/color].

How can i do that?

I tried add this to new BBCode:

[b]BBCodes usage:[/b]
[color=#0000FF][C++]{TEXT}[/C++][/color]
[b]HTML replacement[/b]
[color=#0000FF]<dl class="codebox"><dt>QT (C++): <a href="#" onclick="selectCode(this); return false;">{L_SELECT_ALL_CODE}</a></dt><dd><code[b][i][u]=cpp[/u][/i][/b]>{TEXT}</code></dd></dl>[/color]

but doesn't work  :x 

Can you somebody help me? Thank you very much.

BR,
Benecore
User avatar
Stoker
Site Admin
Site Admin
Posts: 3536
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

[BBCode] based on [CODE]

Post by Stoker »

No, this is for contributions.
We are not offering general support.
Locked!
Board rules! No PM support
Locked