Function strings for PHP files working also with default values

Syntax highlighting, code folding, brace matching, code indenting, and function list

Re: Function strings for PHP files working also with default values

Postby Mofi » Mon May 28, 2012 11:13 am

Turning on Flat List option while a hierarchical function list definition is used is in general no good idea. The result is most often not usable. Even with Sort List option turned off the flat list of a hierarchical function list is most often not useful. I have never done this before as it does not make sense to me. It looks like all strings found on same line are always sorted according to ASCII/ANSI table even with Sort List option turned off. That explains why the parameter of a function starting with character $ are listed in the unsorted flat list above the name of the function starting with a lower case letter found on same line.


I have no updated information about Perl regular expression usage in hierarchical function string definitions. As you have already noticed it looks like using /Regexp Type = Perl in a wordfile containing function strings for subgroups results in a completely not working function list search. I get whether a useful function list result with Perl regular expressions used for all search strings nor with using Perl regular expressions only for top level search strings and all other search strings are in UltraEdit syntax with release candidate 1 of UltraEdit v18.10. I think in some previous versions of UltraEdit at least the combination of Perl regular expressions for top level search strings and UltraEdit regular expressions for subgroups worked, but I'm not really sure. Currently I can just recommend not to use Perl regular expressions when having subgroups defined too in the wordfile.


Unfortunately there is no command to Expand All in a hierarchical function list view. Also updating the function list by executing Search - Function List results always in getting the updated function list view collapsed again except for top level. This behavior is usually good for really working with the function list, but is a very annoying behavior when experimenting with the function string regular expressions. I also don't know of any configuration setting which results in an always completely expanded function list view.


I have not posted any update regarding the project to find good function strings for a hierarchical function list view. The reason is that I was not able to find something useful because of many unexpected and unexplainable results on my approaches. I have reported in detail to IDM support what I have seen and asked 3 questions why UltraEdit produces those totally unexpected results. But the IDM developers have not yet found time to look on these problems and answer my questions as they worked on UltraEdit v18.10 this month. I will stay right with the questions as soon as UE v18.10 is released (most likely this week). But I think the IDM developers have to do a large maintenance work on the hierarchical function list feature and fix all the problems I have reported in the past on this feature before we can get a really good working hierarchical function list view for PHP code.

If somebody has much time and is really interested in the work on a hierarchical function list for PHP, in the attached RAR archive are my emails sent to IDM support and the replies. The RAR archive is encrypted and password protected to prevent search engines to index the files inside. The archive password is the name of the file.
Attachments
php_function_string_mails.rar
Test files and emails exchanged with IDM support regarding function strings for PHP.
(4.72 KiB) Downloaded 32 times
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 3936
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: Function strings for PHP files working also with default values

Postby SAbboushi » Mon May 28, 2012 11:36 am

Thanks Mofi -- and I appreciate you sharing the useful info / test files re: your correspondence with IDM
User avatar
SAbboushi
Basic User
Basic User
 
Posts: 38
Joined: Sun Nov 07, 2004 12:00 am

Previous

Return to Syntax Highlighting