Function list for PHP

Jens Lorenz’ function list plugin is a very handy tool!

After installation, there are a few things you need to customize. For php this is what I did:

  1. Open a php file with some functions
  2. Go to Plugins->Function List->Language Parsing Rules
  3. Click PHP and the ‘add group’ button
  4. Under group rules add the following (without the quotes):
    1. function start: “[\t]*function “
    2. function name: “[\w]*”
    3. function end: “\(”
  5. and click ‘Try’ and view your list being created.
  6. If you like what you see, click ok if not, you can fiddle with the regex.

Keep in mind that this might be different with your code convention, in that case, you’ll have to adjust the second (function name) regex.

At my current job we don’t have that much objects and classes, so I’ll see if i can whiff up a class based regex later.

[edit]
More posts about Notepad++ can be found here: Notepad++ customization.

Leave a Comment

*

*