Closed (fixed)
Project:
Bbcode
Version:
master
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
28 Feb 2006 at 10:29 UTC
Updated:
15 Mar 2006 at 18:15 UTC
Hi,
I would like to insert [b], [i] and other tags in my article, because I'm writing a little help for new users, in BBCode. Is there a way to do this?
Because if I use [b]hello[/b] it will display hello.
Thanks
Comments
Comment #1
naudefj commentedI guess we can always add a [notag]...[/notag] tag. Do you know of a better way to do this?
Comment #2
naudefj commentedWe can always replace square brackets in [notag] with the following HTML Character Codes:
&91; Left square bracket
&93; Right square bracket
Comment #3
Julien PHAM commentedPerhaps we can add a regexp at the end of the filter to replace :
\[ by [
and \] by ]
This will work as escape keys in html.
For now I have replaced { by [, but the problem is that then I'm unable to write { if I so desire.
And as this regexp will be at the end of the filter, it will not be interpreted, and so bbcode tags will be printed as it is...
But I'm unsure if replacing all \[ by [ will not cause other problems.
The problem with [notag] is that is is a bit harsh to write a bbcode help using this system.
Example : if I would like to display :
You can use [b]old to ...
with [notag] I have to do : [b][notag][b][/notag]old[/b], and so if in a single sentence I have many such things to do, it is a bit long to write ;)
Comment #4
Julien PHAM commentedCorrection, I have to do :
[b][notag][b][/notag][/b]old
Comment #5
john.money commentedPersonally I wouldn't write the help with the BBCode filter... just use HTML and they'll never know the difference. ;)
Comment #6
naudefj commented[notag]...[/notag] implemented.
Comment #7
(not verified) commented