>> C:\c2c\wscite\scite.exe "-import mono" FILETOEDIT
> That is the syntax which could work if the code were tweaked a bit.
Aahhh.. so the feature isn't implemented yet!
Alas, I'm not competent to patch SciTE's source code, so that will have to be left to someone else. I am, however, willing to patch the documentation (see below). I was relying on the following sentences from SciTEDoc.html:
'A group of properties can be saved as a property set file (with the extension ".properties") and the import command used on the command line:
SciTE "-import c:\os\web_work" SciTEDoc.html'
These should perhaps be deleted until the feature is implemented.
I did find a workaround. Although properties which are set on the command line are not available for conditional logic when the SciTEGlobal.properties, SciTEUser.properties, and SciTE.properties files are processed, the doc does say that environment variables may be used as properties, and these ARE available when the properties files are scanned.
So, in a Windows XP batch file, I can write
set MF=1
c:\os\wscite\scite.exe FILETOEDIT
and put the lines:
if MF
font.monospace=font:Courier New,size=12
into SciTEUser.properties to get the desired font. In trying this out, I found that if the variable value begins with characters which evaluate to a decimal integer other than 0, the test succeeds, and if the variable is any other string, the test fails. E.g., 'set MF=-2:NoWay' succeeds while 'set MF=0x01' and 'set MF=yes' fail. So SciTEDoc.html should say about conditional tests something like "if the variable tested is a sequence of characters which begins with a nonzero decimal integer, the test succeeds, while if the sequence of characters is any other string, or if the variable is missing, the test fails." (And then give a couple of examples, as I just did.)
I'd be happy to make the necessary changes in SciTEDoc.html if you can tell me how one submits patched documentation for SciTE.
Thanks for the quick response to my initial query, Martin Barrett
_______________________________________________ Scite-interest mailing list [email protected] http://mailman.lyra.org/mailman/listinfo/scite-interest
