5

From Firefox, I downloaded a .html file, with a directory with name ended in _files, by specifying "Webpage, Complete". When open the .html in emacs, even under html-mode, only the source of the html file is displayed, and the webpage is not rendered. How can I render a downloaded html file inside Emacs? It will also be the best that the files under the _files dir is also used in the rendering, but I am only need to read text most of the time.

I am mainly looking form some light-weight (even text) application rather than full-fledged one, because I have opened too many webpages in both Firefox and Chrome, and they take up too much resources.

Is it the same as browsing a webpage via its URL?

  • Is it the same as browsing by URL? Strictly speaking, no. Nowadays many (most?) pages are rendered somewhat dynamically. Interpretive code reads databases, and/or javascript modifies right on your browser to include fonts, what your screen size is, check licensing... That being said, a copy saved from Firefox should be pretty much a snapshot of what you saw at the moment the page was saved. (qualified enough?) – ericx Aug 8 '14 at 23:55
3

I think you will get what you want with w3 (http://elpa.gnu.org/packages/w3.html). It's an emacs web browser in lisp. It still looks like a web-page rendered in emacs...

1

Emacs is an text editor, so the typical use case is to use Emacs to edit the HTML files, and not render them.

Use a browser to render them. Modern web pages are so complex that it is nontrivial to write a fully correct renderer, so you would most likely be disappointed even with w3.

  • 1
    I am mainly looking form some light-weight (even text) application rather than full-fledged one, because I have opened too many webpages in both Firefox and Chrome, and they take up too much resources. – Tim Aug 9 '14 at 13:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.