help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: html browser preview help


From: rpd
Subject: RE: html browser preview help
Date: Sat, 5 Sep 2009 17:13:24 -0700 (PDT)

Hi Drew

Thanks for your reply.
I have tried so many ways to get to preview .html in Internet Explorer
browser including w32-browser.el and unfortunately nothing has yet worked

This is the code I have for w32-browser.el:

;;;;==W32 BROWSER.el===============================================
;;;
;;http://www.emacswiki.org/emacs/w32-browser.el
(load "C:\\Users\\Dad\\Emacs\\emacsaddons\\w32-browser.el")
(setq w32-browser (buffer-file-name)) 
;===

The mouse2 part doesn't work either. Vista works normally such as if I click
a local directory .html file it opens in Internet Explorer but I cannot get
this function to work in Emacs! (the closest I get is opening w3
browser-text browser only).

Have you any idea what the problem with this is? Thanks


Drew Adams wrote:
> 
> Sorry, I haven't followed this thread. 
> 
> If all you're looking for is a way to open your regular Web browser on an
> HTML
> file, from within Emacs, and if you are on Windows, see w32-browser.el.
> http://www.emacswiki.org/emacs/w32-browser.el
> 
> E.g. in Dired, mouse-2 on a file foo.html will open it in your normal Web
> browser (not in Emacs). That assumes that your Windows file associations
> associate your Web browser with the Open action for file type HTML.
> 
> If you are visiting an HTML file in Emacs, and you want to open it in your
> browser, then use (w32-browser (buffer-file-name)) or `M-x w32-browser'.
> (You
> will of course need to save the buffer first, since your browser uses the
> disk
> file.)
> 
> If this is not related to what you're asking for, sorry for the noise -
> hopefully someone else can help.
>  
>> Thanks for your reply-but your advice doesn't work properly 
>> for me (it does open a browser window but this opens at my
>> homepage & does not preview the html file/buffer I have open for
>> editing).
> 
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/html-browser-preview-help-tp25273542p25313460.html
Sent from the Emacs - Help mailing list archive at Nabble.com.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]