Forum Replies Created

Viewing 20 posts - 1 through 20 (of 20 total)
  • Author
    Posts
  • in reply to: Outline plugin, catch most common errors #11218
    Antnee
    Member

    Well that turned the outline for this particular file into the require and class statements only. No properties visible. No functions. It also seems like a very specific solution that will only work with this particular file. It doesn’t work across PHP itself.

    I didn’t realise there was a “number of braces” option, which I’ve just tried. Much better. In fact, close to what I need. If only it would identify properties as well. Oh, and functions that aren’t “public”. The only ones that have shown up are public, so private and protected methods are missing from the outline.

    Something more along the lines of:

    s*?(class|function).*

    for level 1 and

    s*?(public|private|protected|const|var).*

    for level 2. That gives a better result

    in reply to: Outline plugin, catch most common errors #11215
    Antnee
    Member

    Hi Yutaka,

    The problem there is that the function name is buried under the /** parent, which is incorrect. However, I was unclear about my exact use-case, so apologies for that. I’d not realised that the problem for me occurs under classes. I’ve taken this screen shot for you to see. I’ve had to blur a few bits out as this is internal.

    Just taking the visible code from the main window into account, what I expect is something more along the lines of:

    class className
    - private $allowIncompleteCollections
    - private $cacheItemTypes
    - private $cacheArticles
    - private $cacheItems
    ...
    - public function __construct()
    - public function setXmlFeedPattern($pattern)

    Or something like that. Basically, I expect that it will disregard characters that indicate comments. Since these can be defined in the Configuration Hightlight (2) tab, with multi-line (“Begin:”, “End:”) parameters and single line (“Line Comment:”) parameters, and it will then use the first line afterwards. If I change the “Make Comments Collapsible” option I just end up with loads of “/**” in there instead

    Less important, since it begins heading into true IDE territory, would be for it to recognise bracket-pairs as containers for each level. For example:

    class foo{
    public function bar(){
    if (baz()){
    return TRUE;
    }
    }

    private function baz(){
    return TRUE;
    }
    }

    I would expect this to appear in outline as:

    class foo
    - public function bar{
    - - if (baz()){
    - private function baz{

    But oddly, all I see is this:

    class foo{

    This is weird. It’s also useless. The collapsing works in the editor for that code, which is good. However, it works based on the justification of each line. It really ought to be doing so based on the bracket-pairs, especially (in PHP and many other similar languages at least) the curly braces { and }

    Do that, and EmEditor gets a second chance of being my primary editor, and not just my large file editor.

    By the way, if I’m viewing any massive XML files, the Outline plugin still tries to process the entire document. It took a while for me to realise that my CPU was burning along at 100\% just because of this. Got very warm in the room! ;)

    in reply to: Outline plugin, catch most common errors #11151
    Antnee
    Member

    This is exactly why I’m here! We use PHPDOC blocks in our code, so example:

    /**
    * Foo
    *
    * Function description
    *
    * @param STRING $bar The string that you want to foo
    * @return STRING
    */
    public function foo($bar){
    return $bar;
    }

    When we look at this in the outline view we see only @return STRING

    If it has to return a line from the comments, it should really be returning the first line of the comments, not the last. But really it should be showing the line after the comments so I can see “public function foo” or something

    in reply to: Large XML File Plugin #11011
    Antnee
    Member

    We don’t have a problem processing XML a line at a time on the server. What I’m looking for is something that makes reading these files for investigation and development much simpler. At the moment I have a really nice reader for small files, and I use EmEditor to read and search the larger ones. It’s not the tidiest view though in EmEditor

    in reply to: Themed Plugins? #9548
    Antnee
    Member

    Brilliant :) I knew it would be there somewhere. Cheers

    Antnee
    Member

    Ah, mine didn’t reset until I went back and right-clicked on the bar, but as mentioned in another topic, I’m on 10.0.5 (XP) so I shall upgrade and test these again

    in reply to: Recent documents show recently closed #9396
    Antnee
    Member

    Thank you Yutaka. To be honest, it’s not a feature I’ve ever needed before, so it’s far from major, but it strikes me as it’d be a nice option :)

    Antnee
    Member

    I’m actually on 10.0.5 but I’ll get upgraded and test again for you

    in reply to: Scrolling Tabs #9392
    Antnee
    Member

    Brilliant! I knew you’d be WAY ahead of me :) Thank you

    in reply to: Open Documents Dropdown #9390
    Antnee
    Member

    Can I change the layout of the Window menu to only display the filename and not the full path?

    in reply to: Collapsible Custom Bars #9381
    Antnee
    Member

    Can I be cheeky and bump this please? I’m still keen on this feature

    in reply to: Collapsible Custom Bars #8750
    Antnee
    Member

    Does it not depend on how much impact on speed it will have? If it’s a millisecond or two from time to time, you wouldn’t notice it.

    Thanks for supporting my feature request :P

    in reply to: Long Line Indicator #8640
    Antnee
    Member

    Thanks. Wasn’t sure if it’s something I’d missed or not. Hardly a critical feature to include, but a handy programming aid if you want to keep your code easy to read for other people.

    Thank you for taking the time to answer my query. Excellent software, excellent service.

    in reply to: Long Line Indicator #8637
    Antnee
    Member

    But doesn’t that actually wrap the characters? I don’t want an actual wrap, just an indicator that I can go beyond if needs be

    in reply to: Long Line Indicator #8633
    Antnee
    Member

    Hi,

    Thanks for the info. That doesn’t give me what I’m looking for though (unless I’m doing something wrong?). That has caused a horizontal split, where the colour below is the “Outside of region”. What I need is a vertical line. If you look at this image of Netbeans you can see the line on the right, going from top to bottom

    in reply to: Projects Keyboard Shortcuts #8625
    Antnee
    Member

    I wouldn’t describe it as important, but it’s certainly beneficial. There are only so many combinations that are available using the keyboard, and while I would usually navigate using the keyboard, I find that I perform certain actions with a mouse all of the time, like clicking on links in the code.

    I recall Ctrl+Click being a common command to follow links in a few older apps (like Frontpage – eugh) and I think it works well, so yeah, the ability to hold a button and click would be beneficial, but it would only ever be used for a couple of functions I’m sure. I don’t call it important, but I would REALLY love it :D

    Cheers

    in reply to: Toggle Comment #8624
    Antnee
    Member

    Could do. I’ll have to look in to macros in EmEditor; never needed to use them myself, up to now :D

    Thanks

    in reply to: Collapsible Custom Bars #8623
    Antnee
    Member

    I for one find EmEditor to be rapid. It launches immediately on my PC (which is a few years old, though running Win7 x64 and has 6GB RAM) and runs plenty fast enough. If there was an increased memory/CPU cost I wouldn’t have a problem personally, but that’s just me :D

    Thanks for your reply

    in reply to: Toggle Comment #8602
    Antnee
    Member

    Oh, by the way, it would also be nice if I could just comment where the cursor is, without needing to select a block of characters, ie just go to the line I wish to comment and press my key-combo and have the line comment out/in

    in reply to: Changed lines indicator #8598
    Antnee
    Member

    I would vote for this for sure.

    I have been using Netbeans for a couple of months at work and one of the only things that I do like about it is the way that it highlights changes based on Subversion data. When I’m working on a file I can see which lines do not match the most recent update in my directory. Not asking for something that advanced (though it would be nice) but something that shows which lines have been changed since the file was opened would be VERY gratefully received. I’m currently using v9 but this is one of those things that I think need implementing and would definitely upgrade to v10 if it was only available in that :D

Viewing 20 posts - 1 through 20 (of 20 total)