Community
    • Login

    FunctionList in 7.9.1

    Scheduled Pinned Locked Moved General Discussion
    18 Posts 5 Posters 2.4k 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.
    • linpengchengL
      linpengcheng @Alan Kilborn
      last edited by

      failed to customize markdown & Clojure function list in npp 7.9.1, but success in npp 7.9.

      failed_fn_list_config_files.zip

      1 Reply Last reply Reply Quote 0
      • cisco779kC
        cisco779k
        last edited by

        tanxs Peter for your explanation.
        but my function list window is empty… how to load function ?

        Alan KilbornA 1 Reply Last reply Reply Quote 0
        • Alan KilbornA
          Alan Kilborn @cisco779k
          last edited by

          @cisco779k said in FunctionList in 7.9.1:

          but my function list window is empty

          I think you’re going to have to provide some actual information in order for anyone to help you.

          Examples:

          • what Language are you using where you want to see functions in the Function List window?

          • provide a snippet of your code which contains a function definition in the Language, that you are not seeing in the Function List

          • screenshot of what you are seeing when you look at Function List window

          Really, you haven’t provided much to go on. See HERE.

          1 Reply Last reply Reply Quote 0
          • cisco779kC
            cisco779k
            last edited by

            alt text

            PeterJonesP Alan KilbornA 2 Replies Last reply Reply Quote 0
            • PeterJonesP
              PeterJones @cisco779k
              last edited by

              @cisco779k ,

              Yes, unless you go through the process that @Alan-Kilborn showed in the first post in this topic, Normal Text does not have functions. Notepad++ has no way of knowing how you define a function in Normal Text unless you tell it. Normal Text is not the best way to figure out if the Function List panel is working for you.

              Further, the document you showed is empty. How do you expect an empty document to define any functions, whatever language it’s supposed to be?

              If you pick a pre-supported programming language, and open a file of that type (so the Language menu shows it properly selected and the status bar agrees), then the function list will show the defined functions. For example, if I open PerlForFunctionListDebug.pl

              #!perl
              
              use strict;
              use warnings;
              
              sub with_paren() {}
              sub no_paren_brace {}
              sub MyPackage::WithParen() {}
              sub withProto :prototype(\@@) {}
              sub withAttrib  :Ugly : Duckling : Here {}
              
              package MyName;
              sub InPackage() {}
              
              
              __DATA__
              sub fake_data_function() {}
              
              __END__
              sub fake_end_function() {}
              

              … then I see:
              62a55edd-1503-48a1-b461-6921e3410b1e-image.png

              1 Reply Last reply Reply Quote 3
              • Alan KilbornA
                Alan Kilborn @cisco779k
                last edited by

                @cisco779k

                Why don’t you download Notepad_plus.cpp from HERE by right-clicking its contents and doing a SaveAs in your browser, and then open this file in Notepad++?

                Then you should see the following, which MIGHT help you understand this feature by looking at the following:

                7aa174a2-4ec5-4a06-bf8b-e50e2ef58e37-image.png

                Alan KilbornA 1 Reply Last reply Reply Quote 3
                • Alan KilbornA
                  Alan Kilborn @Alan Kilborn
                  last edited by

                  BTW, wow, did I ever select a “violent-sounding” function to use as my example one! :-(

                  1 Reply Last reply Reply Quote 5
                  • cisco779kC
                    cisco779k
                    last edited by cisco779k

                    @PeterJones
                    i have copy and paste your example on np but…
                    alt text

                    @ Alan
                    Notepad_plus.cpp work. tnxs.
                    alt text

                    astrosofistaA 1 Reply Last reply Reply Quote 0
                    • astrosofistaA
                      astrosofista @cisco779k
                      last edited by

                      Hi @cisco779k

                      As @PeterJones file example is not saved, you need to manually assing the correct language to the source file, Perl in this case. Once you do that the function list panel will do its job.

                      But as @Alan-Kilborn file example was saved with an specific extension, Notepad++ automatically assigned the correct language and populate the function list panel.

                      Hope this helps.

                      1 Reply Last reply Reply Quote 4
                      • cisco779kC
                        cisco779k
                        last edited by

                        ok tanxs for explaination! cheers

                        1 Reply Last reply Reply Quote 0
                        • linpengchengL
                          linpengcheng
                          last edited by

                          This post is deleted!
                          1 Reply Last reply Reply Quote 0
                          • Alan KilbornA Alan Kilborn referenced this topic on
                          • First post
                            Last post
                          The Community of users of the Notepad++ text editor.
                          Powered by NodeBB | Contributors