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. |