NikkiLoveGod Posted February 27, 2008 Share Posted February 27, 2008 Hi all! Im having a "not so small" problem. Dreamweaver is randomly formatting my php sourcecode. Ruining my whitespace and indentations a bit. I dont have an right on example right now, but heres somewhat how it goes; I first put up a div in something like this: <div id="test"> <p> this is a paragraph </p> </div> and the next time I watch the sourcecode, it looks like this; <div id="test"> <p> this is a paragraph </p> </div> This is especially true, when I have alot of divs put up like that. example; <div id="1"> <p> para1 </p> </div> <div id="2"> <p> para2 </p> </div> .... So I dont know how to turn this feature off and it seems to come randomly... You guys know any better? Thanks in advance!! Quote Link to comment Share on other sites More sharing options...
richei Posted March 2, 2008 Share Posted March 2, 2008 i didn't notice that until i saw this thread. Its never really bothered me though the only thing that erks me is that instead of putting a tab space, it puts 4 or 5 spaces instead. nothing i can't fix manually, but its just time consuming when you have 500 lines of code to fix Look in ur preferences though, there may be something in there to tell it not do it. Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted March 2, 2008 Share Posted March 2, 2008 Dreamweaver does have a built in automaitc syntax formatting tool which will nicely indent your HTML for you. Goto Command > Apply Source formatting or you can also apply source formatting to a selection too. Quote Link to comment 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.