Crew-Portal Posted August 8, 2007 Share Posted August 8, 2007 I am working on my index which at fist seemed easy to read but now that it is getting over 1000 Lines it is getting more difficult to organize. Where can I get a tidy program for my code or does dreamweaver have this function built in? Please dont suggest HTML tidy Quote Link to comment https://forums.phpfreaks.com/topic/63820-tidy-my-code/ Share on other sites More sharing options...
teng84 Posted August 8, 2007 Share Posted August 8, 2007 dream weaver only highlight the text but maybe it will help also if you have a good structure of coding that is not a prob you should use proper indention and naming variable Quote Link to comment https://forums.phpfreaks.com/topic/63820-tidy-my-code/#findComment-318071 Share on other sites More sharing options...
soycharliente Posted August 8, 2007 Share Posted August 8, 2007 Yes Dreamweaver has a code formatting option. I'm on my Linux box so I can't give you the exact steps for what to choose. I know that it's available in the drop down menu bar. I have found that if you have nested tables, it doesn't do a good job of tidying that, so go back through it. Quote Link to comment https://forums.phpfreaks.com/topic/63820-tidy-my-code/#findComment-318074 Share on other sites More sharing options...
Crew-Portal Posted August 8, 2007 Author Share Posted August 8, 2007 I am pretty good at organizing my code but I do not use up so much space as professionals do for example if I was making a table I would write it like: <table width="900> <tr><td>Hello</td></tr> </table> While pros would write it like: <table width="900> <tr> <td> Hello </td> </tr> </table> Quote Link to comment https://forums.phpfreaks.com/topic/63820-tidy-my-code/#findComment-318076 Share on other sites More sharing options...
Fadion Posted August 8, 2007 Share Posted August 8, 2007 With dreamweaver make sure u have the coding toolbar showed, by going to View >> Toolbars >> Coding. Select the code (normaly in code view ) and click the third icon on that toolbar which is Collapse Selection . To expand it again double click. Quote Link to comment https://forums.phpfreaks.com/topic/63820-tidy-my-code/#findComment-318078 Share on other sites More sharing options...
trq Posted August 8, 2007 Share Posted August 8, 2007 What exactly do you want us to do? All you need do is keep a consistant format. Ive written programs with several thousands of lines of code all in one file.. as long as you indent where expected and keep consistent I don't see the problem. Of course a good text editor helps (Vim). Quote Link to comment https://forums.phpfreaks.com/topic/63820-tidy-my-code/#findComment-318080 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.