SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Addict
    Join Date
    Apr 2003
    Location
    canada
    Posts
    213
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    code indentation

    Hi All,

    I have just completed a website www.persaves.com

    And even thought I properly indented all code you the notepad ++ application I still can not get properly indented code when viewing code source. I know this has to 2 with my 2 include files.

    Does anyone know of any good tools that I could use for this??

  2. #2
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,478
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    IIRC that's a PHP issue you're running into. Try adjusting the formatting of the raw PHP code and see if that helps.

  3. #3
    SitePoint Member
    Join Date
    May 2009
    Location
    Male', Maldives
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    it's actually not an issue for me if the code is not indented in the source code browser. But for ease of programming it's good practice to indent code in the what ever tool your using, which in your case is the NOTEPAD ++

  4. #4
    SitePoint Wizard silver trophybronze trophy
    Join Date
    Jul 2008
    Location
    New York, NY
    Posts
    1,432
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by capples3 View Post
    Hi All,

    I have just completed a website www.persaves.com

    And even thought I properly indented all code you the notepad ++ application I still can not get properly indented code when viewing code source. I know this has to 2 with my 2 include files.

    Does anyone know of any good tools that I could use for this??
    First try what Dan has shared, because this should probably fix your issue.

    If your still having an issue:
    http://snippets.dzone.com/posts/show/1964


Bookmarks

Posting Permissions

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