Dreamweaver CS 5 中的 PHP 代码导航
我已经开始使用 Dreamweaver CS5 进行 PHP 编码。 PHP 语法突出显示工作正常,但我无法完成代码和导航。 例如,在其他编辑器中,如果我在鼠标光标位于变量或函数上方时按 CTRL 键,那么我可以通过单击鼠标跳转到其定义。 另一个问题是,当我定义一个类时,通常在插入“myinstance->”后会出现带有方法列表的提示。 Dreamweaver 中并非如此。 Dreamweaver 支持这个吗?如果是,如何启用此功能?如果类定义位于用“include”引用的单独文件中,这也有效吗?
问候,
I have started to use Dreamweaver CS5 for PHP coding. The PHP syntax highlighting works fine but I don't get code completion and navigation to work.
For instance in other editors if I press the CTRL key while the mouse cursor is over a variable or function then I can jump to its definition with a mouse click.
Another problem is that when I define a class, usually a hint with a list of methods should appear after inserting "myinstance->" which is not the case in Dreamweaver.
Does Dreamweaver support this? If yes, how can I enable this functionality? Does this also work if the class definition is in a separated file which is referenced with "include"?
Regards,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我使用的是基于 eclipse 的 aptana studio,但比 eclipse 稍快。它具有非常好的功能,例如建议、自动完成、代码格式化、突出显示、即时显示语法错误
I am using aptana studio based on eclipse but slightly faster than eclipse. It has very nice features such as suggestions, auto-complete, code-formatting, highlighting, showing syntax errors on the fly
附加 css 文件会有所帮助。
打开一个php文件->在页面上右键-> CSS 样式 ->附上样式表..
选择您的 css 文件。代码导航器将被激活
Attaching a css file can help.
Open a php file -> right click on the page -> CSS Styles -> Attach Style Sheets..
Select your css file. The Code Navigator will be activated
Dreamweaver 不是一个好的 PHP IDE,除了语法突出显示之外,它几乎没有提供任何帮助程序员的工具。
我推荐 NetBeans 作为 PHP 开发的一个很好的免费 IDE。 Eclipse 也是免费的,但我知道最新版本实际上没有可用的 PHP 模块,因此您必须使用以前的版本到当前版本。
Dreamweaver is not a good PHP IDE, other than syntax highlighting it offers little in the way of tools to help a programmer.
I'd recommend NetBeans as a good free IDE for PHP development. Eclipse is also free, but I understand that the latest version doesn't really have a working PHP module so you'll have to use the previous to current version.