Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to look at a rendered website from within emacs?

Tags:

html

emacs

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?

like image 544
Dan Avatar asked Jan 12 '12 00:01

Dan


3 Answers

Yes. Several.

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

like image 89
tkone Avatar answered Nov 07 '22 03:11

tkone


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)
like image 30
tbc0 Avatar answered Nov 07 '22 02:11

tbc0


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

like image 31
user982042 Avatar answered Nov 07 '22 03:11

user982042