This is a discussion on "Source Code Clean-up Wizard" within the PHP Forum section. This forum, and the thread "Source Code Clean-up Wizard are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Source Code Clean-up Wizard
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Source Code Clean-up Wizard
hello! i'm looking for an IDE w/ a "wizard", in the spirit of HTML Tidy, which might separate new lines based on Element tags. are you aware of any such software?
perhaps you can think of something that might do a "similar" type of function? my reason for asking is because something happened to some of my local development files, causing my line returns to disappear-- so it's quite difficult to "see" the structure of the page-- everything looks "run together"-- there are spaces between the tags, however-- so the page when viewed in the browser would NOT appear as if there's anything different about the source-code Although it's mostly HTML, there is php mixed into the HTML Element tags for the purpose of accomodating, for example, folder-heirarchy versus image and include() source-file location -- the depth away from the image folder as in some folders require <img src="../../../consistent-header-image.jpg" /> whereas others need <img src="../consistent-header-image.jpg" /> i mention this particular aspect because this is the reason that i can't use HTML tidy-- because it modifies the PHP code improperly. ideas? my guess is that i could probably do it even w/ Regular Expressions-- only, i'm hardly familiar w/ how to use that technique at all. |
|
#2
|
||||
|
||||
|
Re: Source Code Clean-up Wizard
I may be way off here, but I think you could open the code in Dreamweaver (if you have it) and go to Command > Apply source formatting.
This, again, is only a guess. Best of luck! |
|
#3
|
||||
|
||||
|
Re: Source Code Clean-up Wizard
Yeah, Dreamweaver does exactly what you're after.
|
|
#4
|
|||
|
|||
|
Re: Source Code Clean-up Wizard
And for those that ever have a trouble similar to this when previewing code in a browser put <pre> tag at beginning and </pre> at the end of your code.
|
![]() |
| Tags |
| source, code, cleanup, wizard |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Clean Code | simonb | Search Engine Optimization (SEO) | 17 | Oct 22nd, 2007 21:22 |
| Can somebody give me the code to hide the source code? | renren | JavaScript Forum | 7 | Mar 7th, 2006 13:27 |
| I need some code clean up | rneedham | Job Opportunities | 4 | Jul 30th, 2005 05:53 |
| Viewing source code?? | autumn_whispers2me | Web Page Design | 4 | Feb 14th, 2005 18:40 |
| need help-source code | ayus_82 | ASP.NET Forum | 1 | Sep 20th, 2004 08:48 |