Community
Participate
Working Groups
PHPdocs have received lot of love recently in bug 311734 however in content assist they still look old and ugly. It would be cool to update the way how phpdocs appear in content assist too.
Created attachment 170030 [details] screenshot difference between phpdoc on hover and content-assist
hi Xu, want to take a look at this one too? :-)
Created attachment 170191 [details] patch Hi Jacek, Here is the patch, you can try it.
Created attachment 170199 [details] new patch
thanks Xu, the patch works great for me, the improved tooltip is light years more readable. I tried it with constants/vars, functions and types and all looks fine. I noticed only one issue, that also appears in non-CA tooltip. It's that contents of phpdoc after an empty line are not included in tooltip. For example: /** Line1 * * Line3 * * @author jacek * */ class Boo { } hovering over Boo (or tooltip in content-assist), will show only "Line1", but not "Line3". This is not a big issue, however, typically PDT generates phpdoc blocks like: /** * * Enter description here ... * @author jacek * */ And because of empty line, the "Enter description here..." doesn't appear in tooltip.
Created attachment 171385 [details] example example to above comment
Thanks,Xu!Contributed by Xu.
mark fixed
Regarding commen 5, I opened separate bug 317172 - Long description missing in tooltips
Verified at PDT-2.2.0.v20100616 At tooltip at CA presented at the new line with mentioned issue reported by Jacek Closing this issue... Verified by Teodor Kirkov teodor.k@zend.com