James Cuénod wrote:
I'm running SciTe on a Windows platform and I've just realised how annoying it is that *.css files and *.inf etc. are desecrated by being opened in that heathen program by M*cr*s*ft called N*t*p*d. When I tried to correct this I was successful but only to a certain degree, it works fine in that it attempts to open the file however, if the file is located in a path that contains spaces eg. "C:\Documents and Settings\username\My Documents\asdf.css" SciTe doesn't open the file successfully and instead it opens the following 4 'files': "Documents", "and", "My", " asdf.css". How can I correct this, help would be greatly appreciated - thanks

This is a kind of FAQ...
Surround the parameter with double quotes:
@="\"C:\\Program Files\\SciTE\\SciTE.exe\" \"%1\""

I have also set up the SystemFileAssociations key so all extensions with a PerceivedType of text will open in SciTE (if not overridden by the shell\open\command key):

[HKEY_CLASSES_ROOT\SystemFileAssociations\text\shell\edit\command]
@="\"C:\\Program Files\\SciTE\\SciTE.exe\" \"%1\""

It simplifies registry settings, for example:

[HKEY_CLASSES_ROOT\.properties]
@="propertiesfile"
"PerceivedType"="text"

[HKEY_CLASSES_ROOT\propertiesfile]
@="SciTE properties"

[HKEY_CLASSES_ROOT\propertiesfile\DefaultIcon]
@="C:\\Program Files\\SciTE\\SciTE.exe"

--
Philippe Lhoste
--  (near) Paris -- France
--  http://Phi.Lho.free.fr
--  --  --  --  --  --  --  --  --  --  --  --  --  --

_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest

Reply via email to