Home > Backend Development > PHP Problem > How to implement php code prompts in dw

How to implement php code prompts in dw

藏色散人
Release: 2023-03-17 08:42:01
Original
2386 people have browsed it

dw method to implement PHP code prompts: 1. Open the Dreamweaver software; 2. Press the "$" keyboard to display a list of all variables in the current script; 3. Select the required variables and press "Enter/ Return" key.

How to implement php code prompts in dw

The operating environment of this tutorial: windows7 system, dreamweaverCC 2021&&php8.1 version, Dell G3 computer.

How does dw implement php code prompts?

PHP Code Hinting

Dreamweaver supports code hinting for PHP 5.6 and 7.1 versions. These PHP code tips are site-specific and cover all core functions, classes, and constants.

For more information on PHP versions 5.6 and 7.1, see the PHP manual.

For more information about site-specific coding tips, see Site-specific coding tips.

A useful PHP code hint feature is auto-completion of variables.

When you type the dollar sign ($), a list of all variables in the current script is displayed. Select the desired variable and press Enter/Return. A list of variables from related files is also displayed, eliminating the risk of reusing the same variable for different purposes.

Dreamweaver displays code tips for PHP 7.1 when setting PHP 7.1 as the default.

How to implement php code prompts in dw

PHP 7 Code Tips

How to implement php code prompts in dw

Example of PHP Object Code Tips

Edit PHP code hint delay setting

To improve the performance of code entry in .php files, Dreamweaver 2017.5 and later versions add a delay to PHP code hints. When entering PHP code, Dreamweaver displays the prompt after a 400 millisecond delay. To modify PHP code delay settings, follow this process:

Exit Dreamweaver.

Use a text editor to open brackets.json from the following location:

Win:%appdata%\Adobe\Dreamweaver CC 2017\<locale>\Configuration\Brackets\
macOS:~/Library/Application Support/Adobe/Dreamweaver CC 2017/<locale>/Configuration/Brackets/
Copy after login

3. Click the "Save Structure" button in the upper right corner of the dialog box.

In the JSON file, add a comma after the last name/value pair.

Add the following line (where the preferred delay time must be in milliseconds): "delayInPHPHint":

4. Save the file, and then start Dreamweaver.

Recommended learning: "PHP Video Tutorial"

The above is the detailed content of How to implement php code prompts in dw. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template