Webforumz's RSS FeedRSS Webforumz RegistrationRegister Contact Webforumz StaffContact

Source Code Clean-up Wizard

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.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Feb 5th, 2006, 21:15
Junior Member
Join Date: Sep 2005
Location: kNot in Kansas
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old Feb 6th, 2006, 05:11
herkalees's Avatar
Highly Reputable Member
Join Date: Jul 2005
Location: Massachusetts, USA
Age: 87
Posts: 576
Thanks: 0
Thanked 0 Times in 0 Posts
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Feb 6th, 2006, 21:10
Tim356's Avatar
Reputable Member
Join Date: Nov 2003
Location: Australia
Age: 26
Posts: 331
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Source Code Clean-up Wizard

Yeah, Dreamweaver does exactly what you're after.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Feb 7th, 2006, 01:56
Most Reputable Member
Join Date: Aug 2005
Location: North Wales, United Kingdom
Age: 21
Posts: 1,093
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
source, code, cleanup, wizard

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 19:30.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8