Posting code

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Posting code

      Hey guys, a lot of you post code every now and then to get feedback or for help, which is great. When you do, please convert any tabs to spaces. This forum doesn't understand how to render tabs so it ignores them, which makes it very difficult to parse through large code blocks.

      To convert tabs to spaces, you can paste the code into visual studio and do a find & replace. Just tell it use regular expressions and put \t in the "find" field and four spaces in the "replace with" field. This will convert the code and make it MUCH easier to read on the forum.

      Also, as a side note, you should consider setting up visual studio to automatically convert the tab character into spaces. It's a personal preference of mine because it helps eliminate issues with various editors having different settings for how to render the tab character. When you're trying to align variables, it can get a bit muddy. We actually have this setting as a requirement for all programmers on The Sims. This post illustrates the issue:
      iovene.com/61/

      Again, you can do whatever you want, just make sure you convert tabs into spaces before posting. :)

      -Rez