Currently, whenever you type "<?php" at the top of a new PHP file, Notepad++ comes back with the following recommendations:
- php_egg_logo_guid
- php_ini_loaded_file
- php_ini_scanned_files
- php_logo_guid
- php_real_logo_guid
- php_sapi_name
- php_strip_whitespace
- php_uname
- phpcredits
- phpinfo
- phpversion
None of which are what you actually want and if you click return after the second "p", Notepad++ complete it to the first recommendation, "php_egg_logo_guid".
php_egg_logo_guid
is an easter egg function in PHP that's similar tophp_logo_guid
though likephp_logo_guid
it was removed as of version 5.5.0.
What this patch file does is adds a new entry to the auto-complete dictionary with the string "php", which will be the new top recommendation for the entered string "<?php". That way it will still be auto-completed but to the correct string. That's better.
- Locate the PHP auto-complete dictionary file included with Notepad++ called php.xml, typically located at
%ProgramFiles(x86)%\Notepad++\plugins\APIs\php.xml
. - Apply the patch to that file using a
patch(1)
-compatible utility.