Gentoo Archives: gentoo-user

From: Stroller <stroller@××××××××××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] less file.html
Date: Sat, 12 May 2012 22:41:20
Message-Id: 8CEDDEF1-6CD6-4939-A5F6-CDF9F8AE1E47@stellar.eclipse.co.uk
In Reply to: Re: [gentoo-user] less file.html by Alex Schuster
1 On 12 May 2012, at 22:49, Alex Schuster wrote:
2 > ...
3 >> I want to view the html source of a webpage.
4 >>
5 >> When I run `less file.html` the rendered webpage is shown, not the
6 >> source. It is as if lynx had been invoked, rather than less.
7 >> ...
8 >> How do I disable less from parsing html source, please?
9 >
10 > You can set LESSIGNORE='*.htm*'. This environment variable is used by the
11 > lesspipe command, which is invoked by less and filters the input file
12 > before giving it to less itself.
13
14 That's great! Thanks!
15
16 Searching the manpage for "lessopen" I find that I can use this shortcut instead:
17
18 less -L file.html
19
20 Stroller.

Replies

Subject Author
Re: [gentoo-user] less file.html Stroller <stroller@××××××××××××××××××.uk>