Community
    • Login

    function list does not work for files opened via WinSCP

    Scheduled Pinned Locked Moved General Discussion
    function listphp
    7 Posts 3 Posters 3.0k 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.
    • Stanislav ScholtzS
      Stanislav Scholtz
      last edited by

      hello, i am using php and notepad++ and i edit all php files over winscp for which the notepad++ is the default editor.

      i tried to use the function list function and on notepad++ 7.3.1 i noticed these problems:

      • if the php file is opened via a FTP/SFTP client, npp is not able to show the “funcion list” for my php file
      • if the file is opened localy, npp can display the function list without problems but does not mark current function of the cursor

      the only reason i wanted to use the function list feature is to see in which function i am currently located, but it seems that the function is “not in bold text” in none of the cases for php. if this information could be displayed in the status bar, it would be even more productive.

      best regards, stan

      Claudia FrankC 1 Reply Last reply Reply Quote 0
      • Claudia FrankC
        Claudia Frank @Stanislav Scholtz
        last edited by

        So Scott,
        you woke up the sleeping dogs ;-D

        @Stanislav-Scholtz
        I don’t know why function list via winscp doesn’t work at all but
        can confirm, that function list doesn’t have the feature to display
        where you are in the code. It just shows all found functions and if
        you click on it you will be forwarded to that line.

        Cheers
        Claudia

        Scott SumnerS 1 Reply Last reply Reply Quote 0
        • Scott SumnerS
          Scott Sumner @Claudia Frank
          last edited by

          @Claudia-Frank said:

          you woke up the sleeping dogs

          ??
          Are you referring to upvoting a couple of @Gabr-F posts? He(she?) seemed to make some good points, so I didn’t just upvote to be nice…I’m not known for that – ;)
          If he gets out of hand, in theory downvoting one time could take care of the “problem”. :-D

          Claudia FrankC 1 Reply Last reply Reply Quote 0
          • Claudia FrankC
            Claudia Frank @Scott Sumner
            last edited by

            @Scott-Sumner

            no, referring to

            if this information could be displayed in the status bar, it would be even more productive.

            and your recent enhancements about statusbar ;-)

            Cheers
            Claudia

            Scott SumnerS 1 Reply Last reply Reply Quote 0
            • Scott SumnerS
              Scott Sumner @Claudia Frank
              last edited by

              @Claudia-Frank

              Oh! Now I understand. Sorry for the “wrong turn” interpretation.

              Actually, basing on the other “status bar” Pythonscript code examples, it wouldn’t be too hard to put the “current function” for any programming language in the status bar, perhaps in the really wide segment that currently shows the file type (e.g. “Normal text file”, “Python file”, etc).

              Claudia FrankC 1 Reply Last reply Reply Quote 0
              • Claudia FrankC
                Claudia Frank @Scott Sumner
                last edited by

                @Scott-Sumner

                perhaps in the really wide segment that currently shows the file type

                yes, sounds viable.

                it wouldn’t be too hard to put the “current function” for any programming language

                What kind of identifier have you in mind that matches function definition for (nearly) any language?
                Would be a really big regex. Or do you have something different in mind?

                Cheers
                Claudia

                Scott SumnerS 1 Reply Last reply Reply Quote 0
                • Scott SumnerS
                  Scott Sumner @Claudia Frank
                  last edited by

                  @Claudia-Frank

                  I didn’t mean the code could handle any programming language. I meant that the Pythonscript coder could account for it (any programming languages they are interested in) at coding time. :)

                  And of course I meant any “realistic” programming language with a decent syntax, not necessarily the languages with hellish syntaxes. Thus, not ANY programming language; I should have been clearer.

                  I’ve done this sort of thing before in MultiEdit’s macro language (CMAC) for the C family of languages, and Perl/Python. That’s what I’m basing my “wouldn’t be too hard” comment on.

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