How to Format PHP in Zend Studio
Formatted PHP makes it more convenient to read PHP code when you work with Zend Studio projects. The Zend Studio software includes a formatting property that allows you to specify indents, colors and fonts. You can use the pre-configured settings included with the Zend Studio software or set up your own configuration standard.
Instructions
-
-
1
Open the Zend Studio software from your Windows program menu and choose your project that contains the PHP code.
-
2
Click the "Windows" menu item and select "Preferences." In the opened "Preferences" window, click "PHP," and then click "Code Style."
-
-
3
Click the "Formatter" option. In the center details section, your current settings display. Click "New" to create a new format configuration.
-
4
Set your PHP formatting configuration. For instance, if you want to set a tab for each section of code, click "Tab" in the drop-down box and select "Declarations with class body" from the list of options.
-
5
Click "Apply" to apply the settings to your software.
-
6
Click "OK" to close the preferences window.
-
1