LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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: 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
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
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: 98

Rep: Reputation: 23
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
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,246

Rep: Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323
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,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
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: 703

Rep: Reputation: 111Reputation: 111
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: 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: Void, Linux From Scratch, Slackware64
Posts: 3,154

Rep: Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:51 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration