LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 11-30-2010, 03:17 PM   #1
linuxs64
Member
 
Registered: Jun 2010
Posts: 93

Rep: Reputation: 39
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.
 
Old 11-30-2010, 03:22 PM   #2
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
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)
 
Old 11-30-2010, 03:45 PM   #3
wargus
Member
 
Registered: Mar 2010
Location: Switzerland
Distribution: Slackware
Posts: 97

Rep: Reputation: 13
I've added following to my .bashrc

Code:
export PAGER=most;
assuming most is installed. Results in red (switches) and green (arguments) keywords.
(at least in Slackware)

 
Old 11-30-2010, 04:25 PM   #4
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 4,765

Rep: Reputation: 1467Reputation: 1467Reputation: 1467Reputation: 1467Reputation: 1467Reputation: 1467Reputation: 1467Reputation: 1467Reputation: 1467Reputation: 1467
Konqueror.

e.g. "man:bash"
 
1 members found this post helpful.
Old 12-01-2010, 08:01 AM   #5
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,076

Rep: Reputation: 778Reputation: 778Reputation: 778Reputation: 778Reputation: 778Reputation: 778Reputation: 778
And there's the good old-fashioned way
Code:
man -t name | gv -
When you use -t, the output is PostScript.

Hope this helps some.
 
Old 12-01-2010, 10:06 AM   #6
Ramurd
Member
 
Registered: Mar 2009
Location: Rotterdam, the Netherlands
Distribution: Slackwarelinux
Posts: 555

Rep: Reputation: 75
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 / ...
 
Old 12-01-2010, 11:03 PM   #7
linuxs64
Member
 
Registered: Jun 2010
Posts: 93

Original Poster
Rep: Reputation: 39
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.
 
Old 12-06-2010, 02:59 PM   #8
Keith Hedger
Member
 
Registered: Jun 2010
Location: Devon,UK
Distribution: Linux From Scratch, Slackware64,
Posts: 874

Rep: Reputation: 174Reputation: 174
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
arpwatch syntax and examples other than the man pages mack1e Linux - Software 1 01-23-2009 04:49 AM
VIM Syntax Highlighting JMJ_coder Programming 3 03-05-2008 04:37 PM
syntax highlighting in vi mehrots Linux - Software 10 07-16-2007 08:50 AM
GVIM syntax highlighting gone! kdogksu Linux - Software 4 02-24-2006 09:47 PM
syntax highlighting rohr Programming 3 07-06-2005 06:07 AM


All times are GMT -5. The time now is 09:30 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration