Script:2874
Talk0
1,599pages on
this wiki
this wiki
Use this page to discuss script 2874 php: PHP syntax file for PHP 5.3
- Add constructive comments, bug reports, or discuss improvements (see the guideline).
- Do not document the script here (the author should do that on vim.org).
- This page may be out of date: check the script's vim.org page above, and its release notes.
Making array of extensions
Edit
To produce the array of extensions to include when generating the personalized php.vim file, the following steps may be taken:
- Open a page on the server that calls the phpinfo() function.
- Save the generated HTML source code to phpinfo.html.
- Run this command:
grep name="module phpinfo.html > phpinfo-modules.html - Open
phpinfo-modules.htmlwith Vim. - Enter the following commands in Vim to transform the filtered file into array values:
:%s/".*"//g :%s/\ //g :%s/<[/a-zA-Z0-9=]*>//g :%s/^/"/g :%s/$/",/g