What viewer to use for viewing man pages with syntax highlighting?
Is there a utility or method enabling easier navigation (keyword search, hyperlink etc) or color/syntax highlighting when viewing man pages? Please share. TY.
|
You might find this link interesting, though there may be one or more other ways to do it too.
http://linuxtidbits.wordpress.com/20...for-man-pages/ (Assumes `less` is the pager in use) |
I've added following to my .bashrc
Code:
export PAGER=most; (at least in Slackware) :hattip: |
Konqueror.
e.g. "man:bash" |
And there's the good old-fashioned way
Code:
man -t name | gv - Hope this helps some. |
that assumes you actually have X. But if you're stuck with a console-only, try "most" as your pager: export PAGER=most
Next time you open a man page, it will come in pretty colors. if you like it (try it out first, I'd say) you can put the option in your bashrc / .profile / ... |
thanks for the suggestions, I've tried all of them and settled on PAGER=most in terminal, and konqueror in X. There's another method using vim as pager, via add-on scripts not shipped by default with slackware. whichman is another package to use for searching keywords in man pages, while w3m (text console www browser similar to lynx) can be used to view man pages in terminal as well.
|
I've recently written a script to convert man pages into html format that can be used by the devhelp reader ( or a normal browser ) you an get it here > http://keithhedger.freetzi.com/zips/makemanpages.tgz make sure you read the readme this is very experimental ( and SLOooow ) so feed back would be appreciated.
|
All times are GMT -5. The time now is 08:16 PM. |