[solved] writing the text "[code]" in a post
lazarus / 8-Other
----------------------------------------------------------------------
speter · 2021-02-13 07:56
Is it possible to "escape" special characters in a forum post?
For example, if I were to include "[ code]" (without the space after
the [), then that text would not appear...
Interestingly, entering [ pre]foo[/pre] seems to give something like
the html PRE tag; but having "[ code]" instead of "foo" doesn't work.
[xmp] does not work either.
foo
[xmp]foo[/xmp]
foo
I also tried "¼", which in html gives "1/4"; but no joy there...
[¼] ¼
cheers
S.
----------------------------------------------------------------------
rvk · 2021-02-13 08:07
I thought you could disable bbc-tags with a ceckmark per post but I
can't find it anymore.
(Or maybe it's the "Don't use smileys" under "other options" below
your editor)
You can use the nobbc tag to disable the tags around specific text.
(If you press quote you can see how I did that here)
[Code]here you can use tags without translating them[/code]
----------------------------------------------------------------------
lucamar · 2021-02-13 08:10
There's a special code for that: [nobbc] which stops parsing bbcode
until closed: [code]
As for entity expansion, I don't know, sorry
----------------------------------------------------------------------
speter · 2021-02-13 08:41
Thanks folks.
I am not fussed about the ¼ - I was just thinking of writing the
[ by using its ascii code.
cheers
S.