Sign in to follow this  

Bug with c++ code sections

This topic is 1905 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

There seems to be a bug when you add cpp code to a post.

All code after << disappears.

Noticed this after two sections of code I posted when blank. First after std::cout<<"whatever" and std::cerr<<"sumtingwong".

Both sections just showed std::cout and std::cerr and all subsequent code went missing.

Example:

[source lang="cpp"]std::cout<<"Rawr"<<std::endl;[/source]

inside my source tags I wrote std::cout<<"Rawr"<<std::endl; but only the first was there

Another example:

[source lang="cpp"]Trollol << wrong[/source]

Here I wrote Trollol << wrong Edited by Psilobe

Share this post


Link to post
Share on other sites
There is a problem with the source tag. Use the code tag instead (the <>-button):
[CODE]
std::cout << "Rawr" << std::endl
[/CODE]

Btw, my suggestion would be to remove the button for the source tag, as it seems the natural thing to press when trying to add code (afterall it is the only button that says "code" on it).

Edit: removed unnecessary quote Edited by brx

Share this post


Link to post
Share on other sites
There seems to be a bug when you add cpp code to a post.
All code after << disappears.
Noticed this after two sections of code I posted when blank. First after std::cout<<"whatever" and std::cerr<<"sumtingwong".
Both sections just showed std::cout and std::cerr and all subsequent code went missing.
Example:
[source lang="cpp"]std::cout<<"Rawr"<<std::endl;[/source]
inside my source tags I wrote std::cout<<"Rawr"<<std::endl; but only the first was there
Another example:
[source lang="cpp"]Trollol << wrong[/source]
Here I wrote Trollol << wrong


[source lang="cpp"]

<b>Blah blah blah</b>

[/source] Edited by Michael Tanczos

Share this post


Link to post
Share on other sites

This topic is 1905 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this