Before I complain :), let me say that I find SciTE to be a beautifully
designed piece of software, a credit to Neil Hodgson and everyone
involved.

My problem in brief: I'd like to select batches of properties from the
Windows XP command line (shortcut or cmd.exe), and I can't get "import
propertiesfile" to work from the command line. Using multiple SciTE.properties files (which does work as advertised) is an unattractive option because within a single directory often reside different files which I'd like to edit with different properties.

More detail: SciTE versions 1.66 and 1.67 for Windows. "mono.properties"
is a properties file with monospace font assignment and some colors
tweaked. I first tried

C:\c2c\wscite\scite.exe "-import mono" FILETOEDIT

with "mono.properties" in C:\c2c\wscite, and again in the directory of
FILETOEDIT. No dice: the fonts displayed remained default. (But if I renamed mono.properties in the FILETOEDIT directory to SciTE.properties, it *did* work, so the problem is not inside mono.properties.)

After some fiddling around, I began to suspect a bug, so I tried things
which maybe shouldn't work:

C:\c2c\wscite\scite.exe "-import C:\c2c\wscite\mono" FILETOEDIT, and
C:\c2c\wscite\scite.exe -import C:\c2c\wscite\mono FILETOEDIT, and
C:\c2c\wscite\scite.exe "-import:mono" FILETOEDIT, and
C:\c2c\wscite\scite.exe FILETOEDIT "-import C:\c2c\wscite\mono",

and they didn't. (The second line just loaded two files!)

Then I tried putting some conditional logic into SciTEUser, governed by
a switch WT=1, and tried:

C:\c2c\wscite\scite.exe -WT=1 FILETOEDIT

This didn't work either. Is it that SciTEGlobal.properties and
SciTEUser.properties are scanned *before any* command-line options are
processed? The documentation isn't wholly clear about when the
command-line options are processed. And if the properties files are read
again (when a file is (re-)loaded?), are all the properties reset to
default first?

Anyway, it seems there is a bug, or else I'm doing something obviously
wrong. Can anyone help?

--Martin Barrett
mbrrttATgeemailDOTcom

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

Reply via email to