Submit Your Article Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Code > PHP

Reply
 
LinkBack Thread Tools
Old February 5th, 2006, 04:15 PM   #1
New Member
 

Join Date: Sep 2005
Location: kNot in Kansas
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 jswebdev is on a distinguished road
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.
jswebdev is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old February 6th, 2006, 12:11 AM   #2
Highly Reputable Member
 
herkalees's Avatar
 

Join Date: Jul 2005
Location: Massachusetts, USA
Age: 89
Posts: 563
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 herkalees will become famous soon enough herkalees will become famous soon enough
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!
herkalees is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old February 6th, 2006, 04:10 PM   #3
Reputable Member
 
Tim356's Avatar
 

Join Date: Nov 2003
Location: Australia
Age: 27
Posts: 329
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 Tim356 will become famous soon enough
Re: Source Code Clean-up Wizard

Yeah, Dreamweaver does exactly what you're after.
Tim356 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old February 6th, 2006, 08:56 PM   #4
Most Reputable Member
 

Join Date: Aug 2005
Location: North Wales, United Kingdom
Age: 23
Posts: 1,063
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 sypher has a spectacular aura about sypher has a spectacular aura about
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.
__________________
North Wales Web Design - sypher design
sypher is offline  
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

Bookmarks

Tags
source , code , cleanup , wizard


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 October 22nd, 2007 04:22 PM
Can somebody give me the code to hide the source code? renren JavaScript 7 March 7th, 2006 08:27 AM
Viewing source code?? autumn_whispers2me HTML, XHTML and CSS 4 February 14th, 2005 01:40 PM
need help-source code ayus_82 .NET 1 September 20th, 2004 03:48 AM


Search Engine Optimization by vBSEO 3.2.0 RC8