php - 用于 PHP 的 VIM : List if( )'s and include()' s in Taglist

标签 php vim taglist

我使用 Taglist在 VIM 中,但我继承的一个特定的 PHP 应用程序广泛使用 if() 和 elseif() 以及 include() 进行编码。每个文件(以及数十或数百个文件)近 5000 行代码中没有一个方法或函数。有什么方法可以使用 Taglist 或其他插件来概览代码流吗?我正在考虑在侧边栏中以简洁的方式显示 if() 中的条件,包括它们的层次结构。任何接近于此的东西都会很棒。

谢谢!

最佳答案

这涉及一些工作,您需要使用修改后的 php 规则编译 exuberant ctags 的修改版本。

你可能想看看这里: http://ctags.sourceforge.net/EXTENDING.html

关于php - 用于 PHP 的 VIM : List if( )'s and include()' s in Taglist,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7869325/

相关文章:

php - Laravel 4 - 如何插入多个模型?

php - 使用 html 字符串通过 id 从 div 中提取内部文本

php - 设置 PHP 回显样式

c++ - 在 vim 中,如何创建一个命令来记住光标下的单词?

javascript - Alertify 弹出窗口出现在引导模式的背景中

visual-studio - 如何在 Visual Studio 2010 中使用自由文本(未预定义)对所选单词执行 "Surround-with",例如在 Vim 中

VIM :set list! 作为 .vimrc 中的切换

vim:taglist无法生成标签

ios - TagListView单选swift 4

perl - 是否有使 Moose 属性显示在 Tag_List 中的 vim 插件?