Community
    • Login

    Remove Parameters from Functions List?

    Scheduled Pinned Locked Moved General Discussion
    10 Posts 2 Posters 701 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.
    • jabcreationsJ
      jabcreations
      last edited by

      Where is the option to remove the parameters from the functions list?

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @jabcreations
        last edited by

        @jabcreations

        Settings > Preferences > Auto-Completion > Function parameters hint on input

        jabcreationsJ 1 Reply Last reply Reply Quote 2
        • jabcreationsJ
          jabcreations @PeterJones
          last edited by

          @PeterJones Nope, that’s not it.

          Any other suggestions please?

          PeterJonesP 1 Reply Last reply Reply Quote 0
          • PeterJonesP
            PeterJones @jabcreations
            last edited by PeterJones

            @jabcreations said in Remove Parameters from Functions List?:

            Any other suggestions please?

            My suggestion is that you need to give more details of your problem.

            I tried to guess what you wanted and gave you a solution based on that guess; you didn’t seem to want the solution I provided. It should have been obvious to you at that point that it meant I didn’t understand what you wanted. Instead of explaining why my solution was not sufficient, and/or trying to better explain what you really do want, you just informed me that I was wrong, and then requested more suggestions.

            Without more details (and probably screenshots with what you don’t like highlighted, and maybe even manual screenshot edits to show what you really would like), it is impossible for me to give you more suggestions.

            jabcreationsJ 1 Reply Last reply Reply Quote 0
            • jabcreationsJ
              jabcreations @PeterJones
              last edited by

              @PeterJones View ⇨ Function List.

              Apparently this is only effecting PHP files, not JavaScript.

              So:

              <?php
              function example($a) {}
              ?>

              Appears as:

              example($a)

              …in the functions list with the extra $a.

              PeterJonesP 2 Replies Last reply Reply Quote 0
              • PeterJonesP
                PeterJones @jabcreations
                last edited by

                @jabcreations ,

                Sorry, my bad: I misread, and thought you were talking about auto-completion parameter hints. Now I see you actually meant Function List.

                For PHP, it’s actually really easy, because the %ProgramFiles%\Notepad++\functionList\PHP.xml comes with the right regex already there, but in comments.

                Original:

                <nameExpr expr="(?:\x26\s*)?[A-Za-z_\x7F-\xFF][\w\x7F-\xFF]*\s*\((?:[^/{]|/(?![*/]))*" />
                <!-- comment out the following node to display the function with its parameters -->
                <!-- <nameExpr expr="(?:\x26\s*)?[A-Za-z_\x7F-\xFF][\w\x7F-\xFF]*" /> -->
                

                edit it to say,

                <nameExpr expr="(?:\x26\s*)?[A-Za-z_\x7F-\xFF][\w\x7F-\xFF]*\s*\((?:[^/{]|/(?![*/]))*" />
                <!-- comment out the following node to display the function with its parameters -->
                <nameExpr expr="(?:\x26\s*)?[A-Za-z_\x7F-\xFF][\w\x7F-\xFF]*" />
                

                then save and exit notepad++. when you restart Notepad++, it will no longer show the function parameters in the function list

                dc8c9731-1db2-49e6-8774-efa3bf123d1b-image.png

                Sorry again for the misunderstanding.

                1 Reply Last reply Reply Quote 3
                • PeterJonesP
                  PeterJones @jabcreations
                  last edited by PeterJones

                  @jabcreations said in Remove Parameters from Functions List?:

                  Apparently this is only effecting PHP files, not JavaScript.

                  That’s because every filetype has its own Function List definition – so whowever submitted the javascript definition thought that parameters shouldn’t be included, and whoever submitted the PHP definition thought that parameters should be included (but understood that not everyone would like that, so tried to make it easy for people to customize it by including a comment on how to remove them… quite helpful).

                  PeterJonesP 1 Reply Last reply Reply Quote 2
                  • PeterJonesP
                    PeterJones @PeterJones
                    last edited by PeterJones

                    @jabcreations wrote in “Diable Ctrl+D duplicate line shortcut” (in combination with a reply to an unrelated conversation), said,

                    That worked, thank you very much. I’ve had some very minimal experience with these files in the past though a while ago and not enough to claim to be familiar.

                    Glad it worked for you.

                    jabcreationsJ 1 Reply Last reply Reply Quote 2
                    • jabcreationsJ
                      jabcreations @PeterJones
                      last edited by

                      @PeterJones I remember that there are dedicated files per language.

                      Also, did my last post get deleted? This thread is resolved, I was just making sure that I wasn’t one of those people who asks a question and then says “that worked thanks” but did not clarify what I actually did. Which was to uncomment that last instance of the <nameExpr element in the C:…Notepad++\functionList\php.xml file.

                      PeterJonesP 1 Reply Last reply Reply Quote 2
                      • PeterJonesP
                        PeterJones @jabcreations
                        last edited by

                        @jabcreations said in Remove Parameters from Functions List?:

                        , did my last post get deleted

                        You actually put two replies in one post in this other thread. I just quoted from that (with the link) here, so people in this topic could see it was resolved

                        https://community.notepad-plus-plus.org/post/86845

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