Skip navigation
Currently Being Moderated

How can I set up DW to display PHPDoc in code hints?

Dec 27, 2010 3:00 PM

In my current project I have hundreds of files and many functions and classes (the project is mixed procedural and OOP style). I can't possible remember the details of every function and class. Instead of looking at the file i was hoping that I could get code hints to display the PHPDoc of the files. But no.

 

DW does display the PHP manual for PHP functions and classes though (which is nice). Any ideas?

 

Thanks

 
Replies
  • Currently Being Moderated
    Dec 28, 2010 4:43 AM   in reply to Stephen Cox

    cragthehack wrote:

     

    I can't possible remember the details of every function and class. Instead of looking at the file i was hoping that I could get code hints to display the PHPDoc of the files. But no.

    Unfortunately, Dreamweaver doesn't support PHPDoc comments. It would be a nice addition, so I suggest you file a feature request through the form at http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform. The more people ask for a feature, the more likely it is to be implemented in a future release.

     

    Although DW CS5 doesn't support PHPDoc, it does provide code hints for custom functions and classes. The hints are automatically generated if the definition file is directly included in the current page. For definition files that are included indirectly or dynamically, set up Site Specific Code Hints. The following video I created for Adobe TV shows how to set them up: http://tv.adobe.com/watch/learn-dreamweaver-cs5/using-php-code-hinting -in-dreamweaver-cs5/ (it's towards the end of the video).

     

    If you give your function and class arguments meaningful names, the basic code hints provided this way can be very effective.

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 28, 2010 10:54 PM   in reply to Stephen Cox

    Go back to Designer mode and split with code...Look for a glitch where you

    used PHP and find correct code in help manual.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points