Notepad++ Function List plugin tip2
By: Daniel

Using the Notepad++ Function List plugin you can filter out all of the required and included files in your current PHP file. To do so you will need a few things:

Once you have installed the Function List plugin as the instructions say, open up Notepad++ and follow the instructions below.

  1. Navigate in the File Menu to Plugins > Function List > Language Parsing Rules
  2. Select PHP from the left hand column
  3. Under the Group section click Add (You will now see newGroup listed below the Add / Delete buttons)
  4. Click on newGroup and change the Group Properties Name to Include
  5. Now under the Group Rules section make these changes (without the quotes):
    • Function Begin: “include[\s\w]*\(['"]“
    • Function List Name: “[\w\s\d\\/_.]*”

If you have a PHP file open that has functions and/or classes you can click the Try! button at the bottom of the window and you will see your included file paths show up in the Function List. Repeat this process to create a rule for required files as well. Once completed just click OK and you are done! Enjoy listing your included and required file paths in Notepad++.

**This will filter out the following in your Function List pane:

  • include(‘file_path_here.php’);
  • include (‘file_path_here.php’);
  • include_once(‘file_path_here.php’);
  • include_once (‘file_path_here.php’);
  • require(‘file_path_here.php’);
  • require (‘file_path_here.php’);
  • require_once(‘file_path_here.php’);
  • require_once (‘file_path_here.php’);
1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 5.00 out of 5)
Loading ... Loading ...

4 Responses to “Notepad++ Function List plugin tip2”

  1. Chris Baker Says:

    I am looking for Instructors/ Tutors in these fields:
    HTML, CSS, PHP, XML, ASP, JAVA SCRIPT, FLASH, DREAMWEAVER, FIREWORKS, PHOTOSHOP, and more.
    I need them for online classes and tutorials.
    I need to populate my Web Design Classes section.
    You can offer Free classes or PAID classes.
    Just sign up and login, then request to be an Instructor.
    Thank you
    Chris

  2. Navigare tra le funzioni con Notepad++? Si può fare, con un po’ di fantasia | Upyou.it The Blog Says:

    [...] più facilmente con un numero elevato di funzioni. Porto alla vostra attenzione anche questo e quest’altro post che contengono due ottimi consigli per utilizzare quest plugin. A destra il pannello con la [...]

  3. Aron Says:

    one way to do this is to create following groups:
    * include
    * include_once
    * require
    * require_once

    then you add the following to each group

    Group: include
    ——————–
    function start: include\(\’
    function list name: *.*[\w]

    Group: include_once
    ——————–
    function start: include_once\(\’
    function list name: *.*[\w]

    Group: require
    ——————–
    function start: require\(\’
    function list name: *.*[\w]

    Group: require_once
    ——————–
    function start: require_once\(\’
    function list name: *.*[\w]

    this will give the output

    include
    - file.php
    - folder/file.php

    include_once
    - file2.php
    - folder/file2.php

    In my opinion this gives you a better overview and the abilitie to separate require_once, require, include_once and include from eachother.
    and you also filter out the “(“, “)” and singel dots(‘) from the output

    This works great on Functionlist 2.0 BETA.

    sorry for my bad english :)

  4. Daniel Kassner dot com » Blog Archive » Using Notepad++’s Function List plugin for PHP development Says:

    [...] into an easy to see pane on the right side of my screen. I had previously posted tutorials here and here but now I have made the process for “installing” these new rules easier by posting the [...]

Leave a Reply

geovisitors