Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 11-30-2010, 03:17 PM   #1
Registered: Jun 2010
Posts: 116

Rep: Reputation: 47
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
LQ Guru
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552
You might find this link interesting, though there may be one or more other ways to do it too.

(Assumes `less` is the pager in use)
Old 11-30-2010, 03:45 PM   #3
Registered: Mar 2010
Location: Switzerland
Distribution: Slackware
Posts: 98

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

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
LQ Guru
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 9,160

Rep: Reputation: 3993Reputation: 3993Reputation: 3993Reputation: 3993Reputation: 3993Reputation: 3993Reputation: 3993Reputation: 3993Reputation: 3993Reputation: 3993Reputation: 3993

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

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

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

Rep: Reputation: 110Reputation: 110
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
Registered: Jun 2010
Posts: 116

Original Poster
Rep: Reputation: 47
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
Senior Member
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 2,724

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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 > make sure you read the readme this is very experimental ( and SLOooow ) so feed back would be appreciated.


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 > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:04 PM.

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