View Source applications

I

i l l u s e d

Hi.
I use the code editor Araneae for html etc and have set my View Source
program to it using TweakUI. However when i click View Source, the
application is opened but the html file is not loaded in the application.
Perhaps there is a problem with the way TweakUI changed a registry value or
whatever it did? I tried changing the editor back to notepad but still had
the same problem, notepad opens with a blank document. Any ideas?
Thanks
kent Slaughter
 
C

Charlie Tame

Usually it needs %1 after the filename to pick up the first parameter
passed... which will be the name of the file in this case.

so as an example - whateverpathname/notepad.exe %1

But there's a catch... or at least there might be

I find on this system that some entries need quotes and some don't. If you
are going to change this in the registry go with whatever's already there -
if the entry has quotes try with [space]%1 inside any existing quotes first
but be prepared to retry outside etc.

Also, you can edit the toolbar - right click>customize and add the "Edit"
button which if it's set up properly should give you a choice of editors - I
find this more reliable.

Charlie
 
I

i l l u s e d

hmm... yeah adding the %1 gives a file not found... i already have the edit
toolbar but my application is not in it, how can i put it there? what is a
typical value for HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet
Explorer\View Source Editor\Editor Name\(Default) from someone's whose
works? Also the edit toolbar cannot help with viewing source inside frames
etc, only the top level.

Charlie Tame said:
Usually it needs %1 after the filename to pick up the first parameter
passed... which will be the name of the file in this case.

so as an example - whateverpathname/notepad.exe %1

But there's a catch... or at least there might be

I find on this system that some entries need quotes and some don't. If you
are going to change this in the registry go with whatever's already there -
if the entry has quotes try with [space]%1 inside any existing quotes first
but be prepared to retry outside etc.

Also, you can edit the toolbar - right click>customize and add the "Edit"
button which if it's set up properly should give you a choice of editors - I
find this more reliable.

Charlie

i l l u s e d said:
Hi.
I use the code editor Araneae for html etc and have set my View Source
program to it using TweakUI. However when i click View Source, the
application is opened but the html file is not loaded in the application.
Perhaps there is a problem with the way TweakUI changed a registry value or
whatever it did? I tried changing the editor back to notepad but still had
the same problem, notepad opens with a blank document. Any ideas?
Thanks
kent Slaughter
 
H

Hans Le Roy

Hi Charlie,

You are right about the quotes: quotes are needed for LFN (long file names),
especially if they contain spaces.

Kind regards

Hans Le Roy
MS MVP Win/IE-OE

Charlie Tame said:
Usually it needs %1 after the filename to pick up the first parameter
passed... which will be the name of the file in this case.

so as an example - whateverpathname/notepad.exe %1

But there's a catch... or at least there might be

I find on this system that some entries need quotes and some don't. If you
are going to change this in the registry go with whatever's already there -
if the entry has quotes try with [space]%1 inside any existing quotes first
but be prepared to retry outside etc.

Also, you can edit the toolbar - right click>customize and add the "Edit"
button which if it's set up properly should give you a choice of editors - I
find this more reliable.

Charlie

i l l u s e d said:
Hi.
I use the code editor Araneae for html etc and have set my View Source
program to it using TweakUI. However when i click View Source, the
application is opened but the html file is not loaded in the application.
Perhaps there is a problem with the way TweakUI changed a registry value or
whatever it did? I tried changing the editor back to notepad but still had
the same problem, notepad opens with a blank document. Any ideas?
Thanks
kent Slaughter
 
C

Charlie Tame

Well, in theory you can add such things by opening any folder, going
tools>folder options>file types and working from there.

Find the html file type in the list and when the little window opens click
advanced...

You should see a number of things like open and edit...

In theory you can set up a new "Edit" item there and put your path in as
before. with %1.

Can I just say this is where (specifically) I sometimes have trouble with
quotes as this text box doesn't see to accept them properly always.

But on my W2000 system this plain and simple refuses to work...

So here is the registry entry that's always seemed to work for me...

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Default HTML Editor]
"Description"="HomeSite"

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Default HTML
Editor\shell]

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Default HTML
Editor\shell\edit]

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Default HTML
Editor\shell\edit\command]
@="C:\\Program Files\\Macromedia\\HomeSite 5\\Homesite5.exe %1"


Note that this works on the EDIT button from the toolbar, not view source.


i l l u s e d said:
hmm... yeah adding the %1 gives a file not found... i already have the edit
toolbar but my application is not in it, how can i put it there? what is a
typical value for HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet
Explorer\View Source Editor\Editor Name\(Default) from someone's whose
works? Also the edit toolbar cannot help with viewing source inside frames
etc, only the top level.

Charlie Tame said:
Usually it needs %1 after the filename to pick up the first parameter
passed... which will be the name of the file in this case.

so as an example - whateverpathname/notepad.exe %1

But there's a catch... or at least there might be

I find on this system that some entries need quotes and some don't. If you
are going to change this in the registry go with whatever's already there -
if the entry has quotes try with [space]%1 inside any existing quotes first
but be prepared to retry outside etc.

Also, you can edit the toolbar - right click>customize and add the "Edit"
button which if it's set up properly should give you a choice of
editors -
I
find this more reliable.

Charlie

value
or
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top