Please Read: Format your code!

Discussion in 'Plugin Development' started by V10lator, Jan 9, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    V10lator

    This is hard to read for other devs that want to help, so please add spacing, like this:
    Code:
    public void myFunction(boolean foo)
    {
      if(foo)
      {
        anotherFunction();
      }
      else
      {
        jetAntoherunction();
      }
    }
    and, even if this is optional, use syntax highlighting:
    Code:java
    1. public void myFunction(boolean foo)
    2. {
    3. if(foo)
    4. {
    5. anotherFunction();
    6. }
    7. else
    8. {
    9. jetAntoherunction();
    10. }
    11. }

    which can be done with:
    Code:
    [syntax=java]Your code here[/syntax]
    I refused to help many times cause the codes where huge but not formatted, and I'm sure other devs do the same.

    Thanks for reading! :)
     
    hatstand, kevhog, wwsean08 and 4 others like this.
Thread Status:
Not open for further replies.

Share This Page