将PHP API文档添加到vim balloonexpr [英] Add PHP API documentation to vims balloonexpr

查看:132
本文介绍了将PHP API文档添加到vim balloonexpr的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Vim具有 balloonexpr ,可以在例如 Ruby ,以显示API文档目前的悬停字。

Vim has balloonexpr, which is leveraged in e.g. Ruby to show the API documentation for current hovered word.

如何获得与PHP类似的东西?有哪些CLI /可编程选项可以访问PHP API文档?显然,离线版本比在线php.net HTML版本:)更为重要。例如, doxygen是否用于此?

How could I get something similar for PHP? What CLI/programmable options are there to access the PHP API documentation? Obviously an offline version is preferred over the online php.net HTML version :). Could e.g. doxygen be used for this?

是否有项目已经允许使用PHP API文档的工具提示?

Are there projects already that allow tooltips with PHP API documentation?

推荐答案


手册也可以通过* nix样式的手册页。安装和使用:

The manual is also available via *nix style man pages. To install and use:

安装: pear install doc.php.net/pman

升级: pear upgrade doc.php.net/pman

示例用法: pman strlen

(From: http://php.net/download-docs.php

一旦您安装了 pman 页面,您可以编写一个 balloonexpr 函数来获取您需要的任何信息。

Once you have the pman pages installed, you could write a little balloonexpr function to get whatever information you need.

还有一些SQLite和JSON文档源可能包含您想要显示的信息,在 http://doc.php.net/downloads/

There are also SQLite and JSON documentation sources which might contain the information you want to display, at http://doc.php.net/downloads/

这篇关于将PHP API文档添加到vim balloonexpr的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆