Community
    • Login

    Function List issue

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    6 Posts 2 Posters 2.5k 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.
    • Vishnu KV
      Vishnu K
      last edited by

      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
      • MAPJe71M
        MAPJe71
        last edited by

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

        1 Reply Last reply Reply Quote 0
        • Vishnu KV
          Vishnu K
          last edited by

          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
          • MAPJe71M
            MAPJe71
            last edited by

            @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
            • Vishnu KV
              Vishnu K
              last edited by

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

              1 Reply Last reply Reply Quote 0
              • MAPJe71M
                MAPJe71
                last edited by

                You’re welcome!

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