Community
    • Login

    Function List issue

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    6 Posts 2 Posters 2.9k Views 2 Watching
    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 Offline
      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 Offline
        MAPJe71
        last edited by

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

        1 Reply Last reply Reply Quote 0
        • Vishnu KV Offline
          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 Offline
            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 Offline
              Vishnu K
              last edited by

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

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

                You’re welcome!

                1 Reply Last reply Reply Quote 0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                • First post
                  Last post
                The Community of users of the Notepad++ text editor.
                Powered by NodeBB | Contributors