Change the color of PHP code

You can change the font size and color of PHP scripts in Code view to make PHP code easier to read and edit.

To specify the color of PHP code

  1. On the Tools menu, click Page Editor Options.

  2. In the Page Editor Options dialog box, on the Color Coding tab, select Code View Settings.

  3. In the Display items list, select the PHP script items that you want to format.

  4. In the Item foreground, Item background, and Font style lists, select the options that you want.


    To reset the options to the default settings, click Reset Defaults.

See also


Set IntelliSense options for PHP

Author PHP by using IntelliSense

IntelliSense for PHP

PHP overview

Create a PHP page

Insert a PHP script

Preview a PHP page

Show or hide PHP formatting marks in Design view