StarsInTheSky
01-15-2003, 07:43 AM
Hi, I am merely suggesting that someone makes an addition to this tweak as it only works if the editor of your choice accepts file names with spaces. As the html page viewed is stored in the "documents and settings" at least my favorite editor opens several tabs, recognizing each word as a file, which results in that "documents" get a tab, "and" another, then "settings"..etc.. instead of just opening the temporary internet file
one way to work around this is to make a fix ( Ive seen .vbs such) as a proxy between. it seems like Im not the only one having this problem, so this tweak seems incomplete.
for the record my favorite viewer is context.exe
ok here is a fix allowing context.exe and Vim.exe to work instead of notepad.exe. In addition to the existent tweak create a .vbs file with this content:
'--- viewSourceFix.vbs ---------
'function: Start alternate editor, combine multiple arguments to single file argument.
' Making variable declaration mandatory
option explicit
dim oWShell, sArg, sFile
' Create script object
set oWShell = CreateObject("WScript.Shell")
' Loop through arguments
for each sArg in wscript.arguments
' Add argument to filename
sFile = sFile & sArg & " "
next
' Remove excess space
sFile = Trim(sFile)
'execute editor
oWShell.Run _
"""C:\Program Files\ConTEXT\conTEXT.exe """ & _
"""" & sFile & """"
' Destroy script object
set oWShell = NOTHING
'----------------end of file
please change the path to your favorite editor on your machine. if you encounter an error message saying ''The system cannot find the file specified" then your path isn't right. When done change the registry pointer to location of this file instead of the editor of your choice directly.
if this all doeesnt make sense to you please read the "Use an Alternate Source Viewer with Internet Explorer" tweak first. It shows you how to change the pointer, but most likely your editor won't work without a fix like the one I've written here<P ID="edit"><FONT class="small">Edited by StarsInTheSky on 01/15/03 08:42.</FONT></P>
one way to work around this is to make a fix ( Ive seen .vbs such) as a proxy between. it seems like Im not the only one having this problem, so this tweak seems incomplete.
for the record my favorite viewer is context.exe
ok here is a fix allowing context.exe and Vim.exe to work instead of notepad.exe. In addition to the existent tweak create a .vbs file with this content:
'--- viewSourceFix.vbs ---------
'function: Start alternate editor, combine multiple arguments to single file argument.
' Making variable declaration mandatory
option explicit
dim oWShell, sArg, sFile
' Create script object
set oWShell = CreateObject("WScript.Shell")
' Loop through arguments
for each sArg in wscript.arguments
' Add argument to filename
sFile = sFile & sArg & " "
next
' Remove excess space
sFile = Trim(sFile)
'execute editor
oWShell.Run _
"""C:\Program Files\ConTEXT\conTEXT.exe """ & _
"""" & sFile & """"
' Destroy script object
set oWShell = NOTHING
'----------------end of file
please change the path to your favorite editor on your machine. if you encounter an error message saying ''The system cannot find the file specified" then your path isn't right. When done change the registry pointer to location of this file instead of the editor of your choice directly.
if this all doeesnt make sense to you please read the "Use an Alternate Source Viewer with Internet Explorer" tweak first. It shows you how to change the pointer, but most likely your editor won't work without a fix like the one I've written here<P ID="edit"><FONT class="small">Edited by StarsInTheSky on 01/15/03 08:42.</FONT></P>