Odd thing with BBcode

Pages: 1234
Just a small bug:
 
#include "something.h" //this must be green 
Since this is turning a bug support/request thread, would it be possible to make a "mark all posts as read" button. i.e. Instead of clicking twenty new icons you could just click "Clear all new posts" or something like that.

That'd be a good idea.
Why not just log out and log back in? That'll clear all the posts.
It does?

I'm going to try it.

EDIT: Nice, it does. Never mind the request then.
Last edited on
New BBCode thing!

(From http://www.cplusplus.com/forum/general/15068/#msg73913)


That looks as the tutorial examples:
 
some code
output


here is the trick:
[code]
some code
---
output
[/code]
Wow! +2
 
Om nom
nom


I love it - thats such a nifty feature.

+3 :D

[td][tr][/tr][/td]


I can type OUTSIDE!!!!
^Hax?
Wow! Impressive, Bazzy. Thanks for reporting that one.

Regarding the code with output, great finding!
All funny bugs I find disappear...

Never mind, I'll find some more!
Ahhh, man can't we keep it?

 
hello,
 world
My edit box looks like this: http://i37.tinypic.com/16h7yoj.png
Where did the S and the
center

buttons went?

And why doesn't format work inside code tags?
bold underline etc...

Also [tt] doesn't work properly:

Here are many spaces but not all of them are visible :^(
I recently refurbished the code that formats BBcode and initially thought about some changes including adding or removing some tags - but finally decided to minimize changes in the format itself - so all tags were kept as they were... I have now brought back the missing buttons.

One of the changes is precisely that code tags will no longer work inside code; code segments should consist exclusively of code. The same applies to the new "output" tag, which should only be plain text.

Regarding the TT tag, I believe it never displayed the extra spaces, it was just a change of font. But you can now use the new "output" tag for that.
I'm sure having used [tt] for that before but anyway, [output] will do the same
Thanks for the buttons :^)
Last edited on
Just to annoy you once more, I've wrote an article for the new section ( http://www.cplusplus.com/articles/numb_to_text/ )
But if I try to get there via myitems ( http://www.cplusplus.com/member/myitems.cgi ) the link I find me directs to an unexisting page: http://www.cplusplus.com/articles/preview/1279/
Oh no... Messing with the [tt] tag will mess up a lot of my carefully-formatted posts! Aaiiieeee!

Also, I have occasionally used the formatting tags in [code] blocks to refer to specific pieces of code for the user.

Here, I used [tt] to put some spacing in some inline code:
http://www.cplusplus.com/forum/unices/14869/page1.html#msg72809

Here, I used [b] to highlight specific pieces of code for the OP:
http://www.cplusplus.com/forum/general/14864/page1.html#msg72789

I liked being able to do this, because the OP could be directed to important/relevant parts of the code, but he could still cut and paste the code without the BBcode tags going along for the ride. (Meaning he didn't have to find and remove them before he could compile the examples I gave.)

[edit]
Further, the space-formatting characteristics of the [tt] tag I have often used to match line numbers with code, and to list duplicates and/or modifications to a specific line.

2 op's original code here

That is formatted with
   2  [code]    op's original code here[/code]


Finally, I've used the [tt] tag and [b] tag together to do things like formatted output and console sessions -- which I can see being replaced with the [output] tag, but that's how I've used it for a while now...

Argh.
Last edited on
I've also used bold text in some circumstances inside [code] tags
but I quite agree with twicker, it also happened that someone was using [i] as array index in the code and italic text after the code, that messed up a bit the thins
Last edited on
I've done that too... I just put spaces or an extra code tag in there to stop it. In the case of newbies, some italics in their code is easy enough to ignore for me.

Perhaps an option to specifically enable BBcode in [code] tags for those who know how to use it?

Pages: 1234