Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

SyntaxEdit - code folding issue

It seems a PHP function can't be folded if there is a comment after the function name and its parameters and before the function's opening left curly bracket. Can this be fixed in the next update?

More:
http://www.htmlvalidator.com/CSEForum/viewtopic.php?f=1&t=1969

Thanks
Tagged:

Comments

  • 5 Comments sorted by Votes Date Added
  • Hi,

    PHP function headers - fixed. "If" constructs are in progress...
  • Hi again,

    Situation is following:

    Folding functions has been complitely fixed. However, the comments themself cannot be folded, if they reside inside function header ot if header:

    function P()
    /*
     * unfoldable comment
     */
    {
    }

    if (true)
    /*
     * unfoldable comment
     */
    {
    }

    Unfortunately, this is the way of how parser works; so, it cannot be fixed. However, its unusual style of coding...
  • Thanks for the fix. Folding functions is definitely more important than being able to fold those comments. I assume this will be in the next update, so I'll just wait for it.
Sign In or Register to comment.