Re: [gentoo-user] less file.html

2012-05-13 Thread Stroller
On 13 May 2012, at 06:57, Paul Colquhoun wrote: … You can set LESSIGNORE='*.htm*'. This environment variable is used by the lesspipe command, which is invoked by less and filters the input file before giving it to less itself. … I have here now: $ env | grep -i less

Re: [gentoo-user] less file.html

2012-05-12 Thread Alex Schuster
Stroller writes: I want to view the html source of a webpage. When I run `less file.html` the rendered webpage is shown, not the source. It is as if lynx had been invoked, rather than less. `more file.html` and `most file.html` both work fine, but this is annoying - it takes an effort

Re: [gentoo-user] less file.html

2012-05-12 Thread Stroller
On 12 May 2012, at 22:49, Alex Schuster wrote: ... I want to view the html source of a webpage. When I run `less file.html` the rendered webpage is shown, not the source. It is as if lynx had been invoked, rather than less. ... How do I disable less from parsing html source, please?

Re: [gentoo-user] less file.html

2012-05-12 Thread Stroller
On 12 May 2012, at 23:39, Stroller wrote: On 12 May 2012, at 22:49, Alex Schuster wrote: ... I want to view the html source of a webpage. When I run `less file.html` the rendered webpage is shown, not the source. It is as if lynx had been invoked, rather than less. ... How do I

Re: [gentoo-user] less file.html

2012-05-12 Thread Stroller
On 12 May 2012, at 22:50, Canek Peláez Valdés wrote: ... Another one; unset LESSOPEN: LESSOPEN= file.html That's great! Thanks! Searching the manpage for lessopen I find that I can use this shortcut instead: less -L file.html Stroller.

Re: [gentoo-user] less file.html

2012-05-12 Thread Stroller
On 12 May 2012, at 22:49, Alex Schuster wrote: … I want to view the html source of a webpage. When I run `less file.html` the rendered webpage is shown, not the source. It is as if lynx had been invoked, rather than less. ... How do I disable less from parsing html source, please?

Re: [gentoo-user] less file.html

2012-05-12 Thread Alex Schuster
Stroller writes: On 12 May 2012, at 22:49, Alex Schuster wrote: [...] How do I disable less from parsing html source, please? You can set LESSIGNORE='*.htm*'. This environment variable is used by the lesspipe command, which is invoked by less and filters the input file before giving

Re: [gentoo-user] less file.html

2012-05-12 Thread Stroller
On 13 May 2012, at 00:22, Alex Schuster wrote: … You can set LESSIGNORE='*.htm*'. This environment variable is used by the lesspipe command, which is invoked by less and filters the input file before giving it to less itself. Contrary to my previous email, sent in error, that does NOT

Re: [gentoo-user] less file.html

2012-05-12 Thread Paul Colquhoun
On Sun, 13 May 2012 05:12:59 Stroller wrote: On 13 May 2012, at 00:22, Alex Schuster wrote: … You can set LESSIGNORE='*.htm*'. This environment variable is used by the lesspipe command, which is invoked by less and filters the input file before giving it to less itself. Contrary