簡單的試用心得如下:
安裝pman
使用傳說中的pear來安裝pman
sudo pear install doc.php.net/pman
如果pear版本比較老,需要先升級pear才可以繼續
sudo pear upgrade pear
pman使用方法
pman的使用方法很傻瓜,比如我們想查看strlen的幫助信息:
pman strlen
幫助文本的內容是彩色的,能和chm版本的php幫助文檔媲美。pman的詳細使用幫助如下
#pman --help
man, version 1.6c
usage: man [-adfhktwW] [section] [-M path] [-P pager] [-S list]
[-m system] [-p string] name ...
a : find all matching entries
c : do not use cat file
d : print gobs of debugging information
D : as for -d, but also display the pages
f : same as whatis(1)
h : print this help message
k : same as apropos(1)
K : search for a string in all pages
t : use troff to format pages for printing
w : print location of man page(s) that would be displayed
(if no name given: print directories that would be searched)
W : as for -w, but display filenames only
C file : use `file' as configuration file
M path : set search path for manual pages to `path'
P pager : use program `pager' to display pages
S list : colon separated section list
m system : search for alternate system's man pages
p string : string tells which preprocessors to run
e - [n]eqn(1) p - pic(1) t - tbl(1)
g - grap(1) r - refer(1) v - vgrind(1)
還有一個好處是在vim裡查看php幫助信息更方便了,結合完美
:!pman strlen