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 to prevent my fingers from typing `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. The is, if LESSOPEN='|lesspipe %s', which is set for me as such in /etc/env.d/70less. Wonko