Fandom

Vim Tips Wiki

Script:2874

1,624pages on
this wiki
Add New Page
Talk0

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

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 extensionsEdit

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

CommentsEdit

Also on Fandom

Random Wiki