open file with external web browser

On windows, the better way to open a html file is to made:
rundll32 url.dll,FileProtocolHandler theFileToOpen.tml

By this ways:
- you use the 'default' browser
- you reuse opened browser

But I can't configure Idea to use this stuff. I have a error message,
'cannot start browser: createProcess ... code 2'


3 comments

Barbosa Norbert wrote:

On windows, the better way to open a html file is to made:
rundll32 url.dll,FileProtocolHandler theFileToOpen.tml

By this ways:
- you use the 'default' browser
- you reuse opened browser

But I can't configure Idea to use this stuff. I have a error message,
'cannot start browser: createProcess ... code 2'

well, you can't use that in the IDE settings
as the command line is not properly created (I think IDEA creates one
cmmand line with two args, the exe + the filename, while with your line
there are 3 strings).

Still, I could succesfully use your suggestion to define a faster
"external tool" for opening any file (or directory) I select in a
project window in the default browser (in my case, mozilla for html
windows explorer for directories).

thanks!
Edo

0

Please post this bug to tracker.

--
Mikhail Yakovlev
JetBrains, Inc
http://www.intellij.com
"Develop with pleasure!"

"Barbosa Norbert" <norbert.barbosa@laposte.net> wrote in message
news:b458mb$h8s$1@is.intellij.net...

On windows, the better way to open a html file is to made:
rundll32 url.dll,FileProtocolHandler theFileToOpen.tml

>

By this ways:
- you use the 'default' browser
- you reuse opened browser

>

But I can't configure Idea to use this stuff. I have a error message,
'cannot start browser: createProcess ... code 2'

>
>


0

Barbosa Norbert schrieb:

But I can't configure Idea to use this stuff. I have a error message,
'cannot start browser: createProcess ... code 2'


by the way: what would I need to enter in the settings to display HTML
files with Safari on MacOS?

Best regards,

Dirk Dittert

0

Please sign in to leave a comment.