Results 1 to 6 of 6
  1. #1
    DoubleDee is offline Member
    Join Date
    Aug 2010
    Location
    Arizona
    Posts
    28
    Rep Power
    0

    Default Formatting Java Code

    How do you format your PHP code...

    Do you use Tabs or Spaces to indent?

    And by how many positions do you indents?

    1 position?
    2 positions?
    4 positions?
    Other?

    I think a standard line is 80 characters, so I'm starting to wonder if using a 4-position indent is too much?!

    (It is easier to read than a 2-position indent, but also seems to waste space?!)

    I am using NetBeans as an IDE, and it allows you to change whether us use Tabs or Spaces to indent, and by how much you indent.

    What do you do and why?

    Thanks,



    Debbie

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,556
    Rep Power
    25

    Default

    How do you format your PHP code
    Strange question for a java programming forum.

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is online now Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,404
    Rep Power
    20

  4. #4
    DoubleDee is offline Member
    Join Date
    Aug 2010
    Location
    Arizona
    Posts
    28
    Rep Power
    0

    Default

    Quote Originally Posted by Norm View Post
    Strange question for a java programming forum.
    And where, then, would you prefer it be posted?

    I am asking about formatting *Java code*.

    I don't know what is so "strange"....


    Debbie

  5. #5
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    Quote Originally Posted by DoubleDee View Post
    And where, then, would you prefer it be posted?
    I am asking about formatting *Java code*.
    I don't know what is so "strange"....
    Debbie

    Please re-read your original post:
    Quote Originally Posted by DoubleDee View Post
    How do you format your PHP code...
    We can't read minds, and if you ask about PHP, we assume you mean PHP.

    Luck.

  6. #6
    DoubleDee is offline Member
    Join Date
    Aug 2010
    Location
    Arizona
    Posts
    28
    Rep Power
    0

    Default

    Quote Originally Posted by Fubarable View Post
    Please re-read your original post:


    We can't read minds, and if you ask about PHP, we assume you mean PHP.

    Luck.
    My bad. :o

Similar Threads

  1. Replies: 2
    Last Post: 07-02-2010, 02:20 PM
  2. Need help formatting output and some code
    By A5i19 in forum New To Java
    Replies: 6
    Last Post: 11-09-2009, 04:58 AM
  3. Convert java code to midlet code
    By coldvoice05 in forum New To Java
    Replies: 1
    Last Post: 08-12-2009, 11:14 AM
  4. Convert java code to midlet code
    By coldvoice05 in forum Advanced Java
    Replies: 1
    Last Post: 08-09-2009, 01:21 PM
  5. formatting..
    By sireesha in forum New To Java
    Replies: 16
    Last Post: 06-26-2009, 07:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •