• Login
Community
  • Login

Function List issue

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
6 Posts 2 Posters 2.6k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V
    Vishnu K
    last edited by Mar 17, 2017, 2:37 PM

    this is regarding function list feature in notepad++, I noticed that if a function is defined with static prefixed to it, that function is not listed in the function list window.

    for example
    static function myFunctionName ( ){
    // some codes here
    }

    is there any way so that I can list the functions with static prefix in it.

    looking forward for the answer.

    1 Reply Last reply Reply Quote 0
    • M
      MAPJe71
      last edited by Mar 17, 2017, 2:53 PM

      @Vishnu-K could you tell me what language it’s for?

      1 Reply Last reply Reply Quote 0
      • V
        Vishnu K
        last edited by Mar 17, 2017, 4:25 PM

        php

        <?php

        class myClass {

        function __construct () {

        } // end of __construct

        function __destruct () {
        } // end of __destruct

        // PRIVATE FUNCTIONS: QUERY
        static function helloWorld ($num1){
        return true;
        } // xxx

        function myFriend ($num2) {

        }

        }

        ?>

        1 Reply Last reply Reply Quote 0
        • M
          MAPJe71
          last edited by Mar 17, 2017, 4:34 PM

          @Vishnu-K

          Make sure there is an empty line or a blank line (i.e. line containing spaces or tabs only) between the comment and the function header or make sure there is at least one blank in front of static.

          1 Reply Last reply Reply Quote 0
          • V
            Vishnu K
            last edited by Mar 17, 2017, 7:12 PM

            I did followed your valuable suggestion, It works. thank you :)

            1 Reply Last reply Reply Quote 0
            • M
              MAPJe71
              last edited by Mar 17, 2017, 7:31 PM

              You’re welcome!

              1 Reply Last reply Reply Quote 0
              6 out of 6
              • First post
                6/6
                Last post
              The Community of users of the Notepad++ text editor.
              Powered by NodeBB | Contributors