function list does not work for files opened via WinSCP
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
you woke up the sleeping dogs ;-D
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.
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
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 ;-)
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).
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?
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.