11

The documentation for a library I'm using comes as a bunch of html files mixied in with the source code. It would be nice not to have to switch programs when I want to look at the documentation.

Is there a way to view a rendered html file from within emacs?

Dan
  • 10,845
  • 11
  • 46
  • 75
  • possible duplicate of [Is there a graphic web browser that can used inside of emacs?](http://stackoverflow.com/questions/8785916/is-there-a-graphic-web-browser-that-can-used-inside-of-emacs) – phils Jan 12 '12 at 03:00
  • As of Emacs 24.4 (not yet released), there is a built-in web browser: `M-x eww` (alias `M-x web`). That's an enhancement of the `shr` html rendering that's been in since 24.1, so you can make do with that in some situations; see http://stackoverflow.com/questions/19632185/display-contents-of-remote-html-in-emacs – phils Feb 22 '14 at 00:25

3 Answers3

11

Yes. Several.

Man, I feel like this question should have been "what can't emacs do." and I'm a vi man even.

tkone
  • 19,271
  • 5
  • 50
  • 77
10

I had this same question, and neither of the answers is specific. For rendering, use shr.el (Simple HTML Renderer):

(load-library "shr.el")
(shr-render-buffer)
tbc0
  • 1,269
  • 14
  • 19
1

You can do it using w3m web browser for emacs. But it is very slow redering is sychronous.

user982042
  • 139
  • 3