Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

statico (5018)

statico
  ian.langworthNO@SPAMgmail.com
http://langworth.com/
AOL IM: eisforian (Add Buddy, Send Message)

PAUSE-ID: IAN [cpan.org]

Co-author of Perl Testing: A Developer's Notebook [oreilly.com]

Journal of statico (5018)

Tuesday February 01, 2005
01:30 AM

nautilus and POD documents

[ #22962 ]

I wanted a one click solution to viewing the POD of perl scripts or
modules with Nautilus The solution: make sure Pod::Html is installed,
and copy the following script to ~/.gnome2/nautilus-scripts/podview:

    #!/bin/sh
    for i in $@; do
        t=`tempfile`
        pod2html --infile=$i --outfile=$t \
            --css='http://www.ccs.neu.edu/home/bass/bass.css'
        mozilla-firefox -remote "openURL(file://$t,new-window)"
        ( sleep 2 && rm $t ) &
    done

You may have to open up the nautilus-scripts directory and refresh.
Afterward, right-clicking on a document shows a "Scripts" submenu, which
contains a "podview" item. And, my stylesheet is pretty.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.