Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.

Dark Star

Writing post that show proper source code

This topic is 6638 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

Hi all, I am wondering how some of you guys do that thing when you write your post and include an example source that is in a window like box and looks like Visual C++ way of colour coding identifiers and reserved words. I hate the way that when I indent code for readability, this site takes the whole indents away making my code look like I am some sort of programming beginner who can''t even indent code. I think the way some people did it was it include a HTML tag code but I am not sure. Can someone tell me how this is done because I wanna how I can give example code on this site and make it look readable. for (int i=0; i<20; i++) { cout<<"Thanks for any help in advance"<Dark Star

Share this post

Link to post
Share on other sites
You do like this

int main()
cout << "Just testing..." << endl;

click the "edit message" button to check out how i did it...
(you cant edit it, but you CAN se what i wrote)

Game project(s):

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!