tommyda Posted January 23, 2009 Share Posted January 23, 2009 I am using dreamweaver with my php editing but I noticed on a few threads that the code layout is very easy to read, whereas my code is just bunched together in a mess. I was wondering if there are any built in functions on dreamweaver 8 that will clean up my code and make it more readable. Or if there are any tutorials on php layout i could learn from. Thanks in advance! Quote Link to comment https://forums.phpfreaks.com/topic/142143-solved-php-formattinglayout-in-dreamweaver/ Share on other sites More sharing options...
haku Posted January 23, 2009 Share Posted January 23, 2009 Just do it by hand. Format it into something that looks nice. Add some indents - line up braces etc. Be consistent. It's really better to learn this stuff yourself than to get software to do it for you. Quote Link to comment https://forums.phpfreaks.com/topic/142143-solved-php-formattinglayout-in-dreamweaver/#findComment-744567 Share on other sites More sharing options...
tommyda Posted January 23, 2009 Author Share Posted January 23, 2009 Yea I think that is the best way really I should stop trying for the easy way out! Thanks Quote Link to comment https://forums.phpfreaks.com/topic/142143-solved-php-formattinglayout-in-dreamweaver/#findComment-744575 Share on other sites More sharing options...
Maq Posted January 23, 2009 Share Posted January 23, 2009 In Eclipse, (and I'm sure in any popular IDE's) you can import your own style or use the default one to format the code for you. preferences >> java >> code style >> formatter i think? I think the hot key is ctl+r, but I'm not sure, it will re-format all the code nice and neat for you. Quote Link to comment https://forums.phpfreaks.com/topic/142143-solved-php-formattinglayout-in-dreamweaver/#findComment-744593 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.