[gentoo-user] less file.html

May 12th, 2012 - 05:40 pm ET by Stroller | Report spam
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?

The matter appears to be addressed in neither the manpage nor the info file. Google doesn't seem to have any results, probably because "less" is such a common word used in other contexts.

Stroller.
email Follow the discussionReplies 11 repliesReplies Make a reply

Replies

#1 Remy Blank
May 12th, 2012 - 06:00 pm ET | Report spam
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)

Stroller wrote:
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.



As a workaround, you can use:

less <file.html





Similar topics