<bdo id='pXd0T'></bdo><ul id='pXd0T'></ul>
<tfoot id='pXd0T'></tfoot>

<small id='pXd0T'></small><noframes id='pXd0T'>

  • <legend id='pXd0T'><style id='pXd0T'><dir id='pXd0T'><q id='pXd0T'></q></dir></style></legend>
    <i id='pXd0T'><tr id='pXd0T'><dt id='pXd0T'><q id='pXd0T'><span id='pXd0T'><b id='pXd0T'><form id='pXd0T'><ins id='pXd0T'></ins><ul id='pXd0T'></ul><sub id='pXd0T'></sub></form><legend id='pXd0T'></legend><bdo id='pXd0T'><pre id='pXd0T'><center id='pXd0T'></center></pre></bdo></b><th id='pXd0T'></th></span></q></dt></tr></i><div id='pXd0T'><tfoot id='pXd0T'></tfoot><dl id='pXd0T'><fieldset id='pXd0T'></fieldset></dl></div>

        在 Emacs 中编辑 PHP 的好设置是什么?

        What is a good setup for editing PHP in Emacs?(在 Emacs 中编辑 PHP 的好设置是什么?)
          <tbody id='YnTh8'></tbody>

            <bdo id='YnTh8'></bdo><ul id='YnTh8'></ul>

            1. <i id='YnTh8'><tr id='YnTh8'><dt id='YnTh8'><q id='YnTh8'><span id='YnTh8'><b id='YnTh8'><form id='YnTh8'><ins id='YnTh8'></ins><ul id='YnTh8'></ul><sub id='YnTh8'></sub></form><legend id='YnTh8'></legend><bdo id='YnTh8'><pre id='YnTh8'><center id='YnTh8'></center></pre></bdo></b><th id='YnTh8'></th></span></q></dt></tr></i><div id='YnTh8'><tfoot id='YnTh8'></tfoot><dl id='YnTh8'><fieldset id='YnTh8'></fieldset></dl></div>
              <legend id='YnTh8'><style id='YnTh8'><dir id='YnTh8'><q id='YnTh8'></q></dir></style></legend>

                <small id='YnTh8'></small><noframes id='YnTh8'>

              • <tfoot id='YnTh8'></tfoot>

                  本文介绍了在 Emacs 中编辑 PHP 的好设置是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我将在今年夏天为我的工作做一些 PHP 编辑,并且正在寻找一个有效的 Emacs 设置来编辑它.我已经在 Emacs 上投入了大量资金,所以切换到另一个编辑器是不值得的.

                  I'm going to be doing some PHP editing for my job this summer, and am looking for an effective Emacs setup for editing it. I'm already heavily invested in Emacs, so switching to another editor is not worthwhile.

                  现在,我有 nXhtml-mode,它提供了一个 PHP 模式带有语法高亮(至少有三种不同的语法)以及用于编辑嵌入 HTML 中的 PHP 的 MuMaMo.我刚开始使用 Auto-Complete 和 Anything 分别用于编程和一般 Emacs 内容.

                  Right now, I have nXhtml-mode, which provides a PHP mode with syntax highlighting (there are at least three different ones in the wild) as well as MuMaMo for editing PHP embedded in HTML. I just started using Auto-Complete and Anything for programming and general Emacs stuff, respectively.

                  我真正想要的是一种让 Emacs 真正理解项目的有效方法,而不仅仅是突出显示.Etags 看起来是个不错的选择,但看起来生成新标签的过程有点艰巨和手动(或至少不是隐形的).Etags 的好处在于它们可以与任何东西和自动完成很好地集成.其他可能的选择是 gtags(虽然我对安装非 elisp 文件犹豫不决,只是为了复杂性)、vtags 或 Semantic,我以前弄过它并且设置起来似乎很复杂,而且它看起来不支持 PHP.

                  What I'm really looking for is an effective way to get Emacs to really understand the project, beyond just highlighting. Etags looks like a good option, but it looks like the process for generating new tags is kind of arduous and manual (or at least not invisible). The nice thing about Etags is that they integrate well with Anything and Auto-Complete. Other potential options are gtags (though I'm hesitant to install non-elisp files, just for the complexity), vtags, or Semantic, which I've messed with before and seems complicated to set up, plus it doesn't look like it has support for PHP.

                  另一个选项是 Imenu,但它只适用于当前缓冲区,我想能够跳转到其他文件中的函数定义(最好使用Anything来完成名称).

                  Another option is Imenu, but it only works for the current buffer, and I would like to be able to jump to function definitions in other files (preferably using Anything for completion of the name).

                  我将从事的项目并不大(总共大约 30,000 行),所以 Etags 的开销可能不会是一个大问题,但如果有更好的,我宁愿不使用它解决方案.

                  The projects I will be working on are not that big (about 30,000 lines total), so the overhead of Etags probably won't be that big of an issue, but I'd rather not use it if there is a better solution.

                  那么您首选的 PHP 编辑系统是什么?

                  So what is your preferred PHP editing system?

                  推荐答案

                  除了你已经熟悉的功能,我建议你做以下.

                  In addition to features you are already familiar with, I suggest you the followings.

                  我不使用 ETag,但 SO 如何使用 emacs 以编程方式创建/更新 TAGS 文件.虽然没有发布好的答案,但它可能是获得想法的一个很好的切入点.

                  I do not use ETags, but there is a question already on SO How to programmatically create/update a TAGS file with emacs. No good answer was posted, though, but it may be a good entry point to get an idea.

                  Flymake 是一种进行动态语法检查的模式.它也支持 PHP.它会在您键入时立即提示语法错误.Emacs 23 附带的 Flymake 版本包含 PHP 支持.如果您有以前的版本,请查看 Sacha Chua 在 Emacs 和 PHP:使用 Flymake 进行即时语法检查.

                  Flymake is a mode to get on the fly syntax checking. It has support for PHP as well. It hints at syntax errors immediately as you type. The Flymake version shipped with Emacs 23 contains PHP support. If you have previous version, check Sacha Chua's post on Emacs and PHP: On-the-fly syntax checking with Flymake.

                  另一个有用的包是 Geben,它允许您调试脚本交互地.对于 PHP,您可以使用 XDebug.有关于如何做到这一点的详细教程,请参阅 用geben在emacs中调试php.

                  Another useful package is Geben that allows you to debug your scripts interactively. For PHP, you can use XDebug. There is a detailed tutorial on how to do that, see Debug php in emacs with geben.

                  PHP 模式有一个很好的功能,可以在您的网络浏览器中查找 PHP 手册中的函数定义(M-x php-search-documentationC-c C-f).您可以将其与 Emacs-W3M 结合使用,无需离开 Emacs 即可获取相关手册页.

                  PHP Mode has a nice feature to lookup the function's definition in PHP's manual in your web browser (M-x php-search-documentation or C-c C-f). You can combine it with Emacs-W3M to get the relevant manual page without leaving Emacs.

                  这篇关于在 Emacs 中编辑 PHP 的好设置是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
                  PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
                  mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                  Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                  Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                  Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)
                    <tfoot id='LFKYE'></tfoot>
                    <i id='LFKYE'><tr id='LFKYE'><dt id='LFKYE'><q id='LFKYE'><span id='LFKYE'><b id='LFKYE'><form id='LFKYE'><ins id='LFKYE'></ins><ul id='LFKYE'></ul><sub id='LFKYE'></sub></form><legend id='LFKYE'></legend><bdo id='LFKYE'><pre id='LFKYE'><center id='LFKYE'></center></pre></bdo></b><th id='LFKYE'></th></span></q></dt></tr></i><div id='LFKYE'><tfoot id='LFKYE'></tfoot><dl id='LFKYE'><fieldset id='LFKYE'></fieldset></dl></div>
                  1. <legend id='LFKYE'><style id='LFKYE'><dir id='LFKYE'><q id='LFKYE'></q></dir></style></legend>
                      <tbody id='LFKYE'></tbody>

                    <small id='LFKYE'></small><noframes id='LFKYE'>

                      • <bdo id='LFKYE'></bdo><ul id='LFKYE'></ul>