Publishers of technology books, eBooks, and videos for creative people

Home > Articles > Web Design & Development > PHP/MySQL/Scripting

  • Print
  • + Share This
From the author of Autocompletion and Syntax Checking

Autocompletion and Syntax Checking

Another helpful feature is the autocompletion of variables. As soon as you type a dollar sign ($), a list of all variables in your current script pops up. Just select the one you want, and press Enter/Return. No more worrying about getting the spelling or capitalization correct. Variables from related files are also listed, eliminating the danger of reusing the same variable for a different purpose. Dreamweaver CS5 even recognizes when a variable represents an object, and displays all its public methods and properties as soon as you type the -> operator.

Perhaps the biggest timesaver of all for beginners and experts alike is the real-time syntax checker. Dreamweaver CS5 constantly monitors your PHP code as you type, flagging syntax errors by displaying a red mark over the line numbers in Code view. It won't tell you what the error is, but indicating which line it's on avoids unnecessary roundtrips to the browser only to see a cryptic error message.

  • + Share This
  • 🔖 Save To Your Account