JohnBeckett (talk | contribs) (move (and apply standard formatting) to text entered by 24.62.3.237 at inappropriate page; every script has unknown support) |
(Change <tt> to <code>, perhaps also minor tweak.) |
||
Line 5: | Line 5: | ||
*Open a page on the server that calls the phpinfo() function. |
*Open a page on the server that calls the phpinfo() function. |
||
*Save the generated HTML source code to phpinfo.html. |
*Save the generated HTML source code to phpinfo.html. |
||
− | *Run this command: |
+ | *Run this command: <code>grep name="module phpinfo.html > phpinfo-modules.html</code> |
− | *Open < |
+ | *Open <code>phpinfo-modules.html</code> with Vim. |
*Enter the following commands in Vim to transform the filtered file into array values: |
*Enter the following commands in Vim to transform the filtered file into array values: |
||
<pre> |
<pre> |
Latest revision as of 09:48, 14 July 2012
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[]
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.html
with 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