Hirse / brackets-outline-list

Extension for Brackets and Phoenix to display a list of the functions or definitions in the currently opened document.
MIT License
79 stars 30 forks source link

PHP class support #67

Closed tonoslav closed 7 years ago

tonoslav commented 8 years ago

Hello,

it should be awesome if you could implement PHP objects support to show outline of whole classes for example, something like code explorer in other softwares. For example:

Hirse commented 8 years ago

I agree that would be nice. Unfortunately I have not found a tool that extracts these information for me, so the extension is using a custom parser/lexer which @yfwz100 contributed. Maybe you want to look into extending it with support for classes (or convince him to do so 😉 ).

tonoslav commented 8 years ago

@Hirse It would be awesome if @yfwz100 could do that for us, I can try it but I don't have enough time. I'm really new with Brackets but I will try it soon if nobody give us any solution sooner.

yfwz100 commented 8 years ago

I am glad if anyone could help 😄 . Actually I am busy preparing my graduate project so I may not have enough time for this.

ps: The parser has been able to deal with classes/namespaces. If you want to make a tree view, just modify the state array and make a hierarchical list with indent in each items(properties/functions) that belongs to a class.

Hirse commented 8 years ago

Thanks for the hint @yfwz100 and good luck with your project.