Page 1 of 1
Empty [syntax] tags; "disable bbcode" has no effect
Posted: Wed Apr 07, 2010 3:28 pm
by requinix
1.
The old <code> tags required something in between to be replaced. If I do "
" then you see the tags, just like that - helps when telling people to use them.
The new <syntax> tags don't behave this way: "
".
2.
<syntax> doesn't observe the "Disable BBCode" posting option.
Re: Empty [syntax] tags; "disable bbcode" has no effect
Posted: Wed Apr 07, 2010 4:42 pm
by pickle
Can't help with 2, but with 1, just put spaces in: [ syntax ][ /syntax ]
Re: Empty [syntax] tags; "disable bbcode" has no effect
Posted: Wed Apr 07, 2010 4:52 pm
by requinix
I've tried that before, only to have... less educated users put the spaces in it too. And having to tell them to remove the spaces feels demeaning.
Not arguing against using spaces - certainly a simple answer to a simple problem - I'm just saying that if it could be done for the original highlighter...
Re: Empty [syntax] tags; "disable bbcode" has no effect
Posted: Wed Apr 07, 2010 5:01 pm
by Weirdan
Option 1: Wrap it into
[/code][/syntax]
renders as
[/syntax]
Re: Empty [syntax] tags; "disable bbcode" has no effect
Posted: Wed Apr 07, 2010 5:06 pm
by Weirdan
Option 2: put another tag pair such as
inside the [syntax] tag to make it invalid bbcode (doesn't work with post preview though):
renders as
[syntax]