[BBCode] based on [CODE]
Posted: 30 Apr 2012, 10:18
Hi
I hope I'm in a good topic , or?
I have questions about add custom BBCode based on
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