Copying code in this forum

So I'm a beginner and I can't copy/paste my code in a forum question to get it in the blue box like everyone else. This causes people to skip reading my code. How do I make my copied code look better (put in the blue box with indentation)?

Thanks!
to your right there is a format section

there is a code tab that will generate this

[code}{/code] or you can just right that out (using all square brakets [] [] )

when putting code onto this site, copy it directly out of the IDE your using directly into the code tags and it should have proper indentation.

if not, maybe touch it up a bit, the preview button will let you see the final product without actually submitting.

on older posts you can always go back and edit code tags in

EDIT:

thought of some more tips,

be descriptive with your problem, and give an idea where in the code you think the error is occurring,

http://www.cplusplus.com/forum/beginner/1/
refer to that for any other questions
Last edited on
When you are writing a new post, there is a panel labeled "format" to the right of the text box you write in. Place your mouse over each of the buttons to see what they do. You are specifically looking for the "Code" one.

http://snag.gy/rAzxO.jpg
Last edited on
There are actually a couple of articles about tags (this is, in my opinion, the best one):
http://www.cplusplus.com/articles/z13hAqkS/
Also when you create a thread by default it has the code tags :P Just put your code where it says //code goes here
Also when you create a thread by default it has the code tags :P Just put your code where it says //code goes here


It does?! Mine doesn't...
closed account (3qX21hU5)
It is only in the beginners section.
Script Coder wrote:
When you are writing a new post, there is a panel labeled "format" to the right of the text box you write in.
It is only to the right for replies, for posting new topics it is underneath:

http://i.imgur.com/ZtAEHBq.png
Wow I had no idea the beginners section added code tags by default now.
@RB weren't you partaking in the thread where we were suggesting ideas for twicker to implement?
Hmm I think I might have. I thought it was just a "wouldn't this be cool" type of thread, not something that would actually get implemented.
THANKS EVERYONE!
It is only to the right for replies, for posting new topics it is underneath:

True, thank you.
Topic archived. No new replies allowed.