if not, is there another was to get a nice dropdown menu of functions while typing and then have a tooltip at the cursor position with function description?
what I mean is exactly what i found here
cheers,
garfield
Calltips would be great! I've added your suggestion to:
http://code.google.com/p/pnotepad/issues/detail?id=142
I've been meaning to add api file support for a while, guess it's time to get around to it. Note that PN does already do calltips for code that you write in your file:
http://untidy.net/images/calltips.png
This only works for currently saved files as it's based on the tags parsing. This could definitely be improved too. We combine terms from the keywords with tags found in your code.
This only works for currently saved files as it's based on the tags parsing. This could definitely be improved too. We combine terms from the keywords with tags found in your code.
I've noticed that and it works fine with most JS files, but it doesn't work with included files. In most cases I don't have my functions defined in files I use those functions. This is both for C based languages and PHP.
It's even worse in PHP because I often use something like
include ('all_top.php')
and in all_top.php
include ('my_library.php')
include ('my_session.php')
include ('my_database.php')
...
So parsing up to some level (2-3) would make this feature tons better for me :-). Maybe this could be some language based feature?
I wouldn't mind if files would load longer (even in minutes) and if function tables wouldn't be updated after a library file would be changed (there could be a button to refresh library calltips).
This is definitely something that I'd like to work towards. As a first step, I think supporting a pre-generated TAGS file for a directory structure would help. This way you can run ctags (or perhaps PN can do it) over a whole directory and use those tags for completion and navigation.
Going beyond that and having per-language understanding would also be cool. The code in PN is written in such a way that it's not that hard to have per-scheme autocomplete providers and to chain them together as well. It just takes someone sufficiently motivated to have a go at writing one!
I'm really looking forward to this,
way to go!
I got most of this done today, and had PHP calltips from the Notepad++ API definition working for me earlier. I have a bit more work to do on it and some bug fixes from the recent release and then there'll be a new testing release with API file support.
You must log in to post.