Re: Local PHP docs with search facility
| From: | Hannes Magnusson | Date: | Fri, 03 Jun 2011 10:02:27 +0000 |
| Subject: | Re: Local PHP docs with search facility | ||
| References: | 1 2 3 4 5 6 | Groups: | php.doc php.internals |
| Request: | Send a blank email to internals+get-52851@lists.php.net to get a copy of this message | ||
On Fri, Jun 3, 2011 at 00:41, Richard Riley <rileyrg@googlemail.com> wrote:
> Nathan Nobbe <quickshiftin@gmail.com> writes:
>
>> On Thu, Jun 2, 2011 at 4:01 PM, Philip Olson <philip@roshambo.org> wrote:
>>
>>>
>>> On Jun 2, 2011, at 2:46 PM, Richard Riley wrote:
>>>
>>> > Hannes Magnusson <hannes.magnusson@gmail.com> writes:
>>> >
>>> >> On Thu, Jun 2, 2011 at 21:03, Richard Riley <rileyrg@googlemail.com>
>>> wrote:
>>> >>>
>>> >>> Could some kind soul advise me on how to install php docs localy and
>>> >>> have the excellent patterns search work based on an sqllite database?
>>> >>
>>> >> https://wiki.php.net/doc/phd/view
>>> >>
>>> >> Please ask any followup questions on the proper mailinglist,
>>> >> phpdoc@lists.php.net for questions about the docs, or
>>> >> php-webmaster@lists.php.net for questions about the website.
>>> >>
>>> >
>>> > Yes, please excuse the wrong group. I realised that after posting.
>>>
>>> But while we're here, pman is another option:
>>>
>>> $ pear install phpdocs/pman
>>> $ pman mysql_connect
>>>
>>> That'll show the mysql_connect() documentation as a local man page.
>>>
>>
>> not to shabby ;)
>>
>> and to Richard's question about search the -K option may be just the ticket.
>>
>> -nathan
>
> All very nice - thanks for the info. And if anyone has an emacs
> interface to this please drop me a line .
(setq manual-program "./pman")
(global-set-key [(f1)] (lambda () (interactive) (manual-entry (current-word))))
That will map F1 to the man page under the current word (thanks to cweiske@).
For vi:
set keywordprg=pman
and then hit shift+k over a function.
-Hannes