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?
>
> 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.
That's great! Thanks!
Searching the manpage for "lessopen" I find that I can use this shortcut
instead:
less -L file.html
Stroller.