import in SciTEUser.properties

112 views
Skip to first unread message

Sascha

unread,
Apr 29, 2008, 8:56:07 AM4/29/08
to scite-interest
Hi,

me again :)
I want to import a properties-file in SciTEUser.properties by this
command:
import $(SciteUserHome)/ahk
but it doesn't work. If I put it in SciTEGlobal.properties with
import ahk
it works. But with the next update the Global.properties file will be
overwritten and my changes are lost.

I tried for half an hour to solve the problem - without success -
please help me...

cu Sascha

mozers

unread,
Apr 29, 2008, 12:00:05 PM4/29/08
to Sascha
Tuesday, April 29, 2008, 4:56:07 PM, Sascha wrote:

S> I want to import a properties-file in SciTEUser.properties by this
S> command:
S> import $(SciteUserHome)/ahk

import languages\ada

If it is written in SciTEGlobal.properties:
that is imported file $(SciTEDefaultHome)\languages\ada.properties

If it is written in SciTEUser.properties:
that is imported file $(SciTEUserHome)\languages\ada.properties

If it is written in AnyOther.properties:
that is imported file $(AnyOtherPath)\languages\ada.properties

--
mozers

Sascha

unread,
Apr 30, 2008, 1:32:48 AM4/30/08
to scite-interest
ok I think I understand it - it uses allways the path of the
prop.file

I have solved the problem now by including my own prop.file in SciTE
directory in SciTEGlobal.properties - so I have only to change one
line in Global.prop after update to a new version. (I hope there will
be any change in SciTE behavior...)

Sascha

Alberto Santini

unread,
Apr 30, 2008, 3:39:00 AM4/30/08
to scite-interest
Hello Sascha.

On Apr 29, 2:56 pm, Sascha <sascha.miku...@googlemail.com> wrote:
> Hi,
>
> me again :)
> I want to import a properties-file in SciTEUser.properties by this
> command:
> import $(SciteUserHome)/ahk
> but it doesn't work. If I put it in SciTEGlobal.properties with
> import ahk
> it works. But with the next update the Global.properties file will be
> overwritten and my changes are lost.

I copied the language file from $(SciTEDefaultHome) to $
(SciTEUserHome) and, then, I modified SciTEUser.properties with the
line "import ahk".

So I didn't touch the fresh installation of the SciTE, but I have to
remember to copy the language files every time I upgrade SciTE (if the
language file it is modified).

Maybe the command 'import' could be modified to look for in $
(AnyOtherPath), $(SciTEDefaultHome) and $(SciTEUserHome).

Regards,
Alberto

Sascha

unread,
Apr 30, 2008, 4:47:15 AM4/30/08
to scite-interest
Hi Alberto,

I thought about this method - but I know myself ;) I'm sure that I
forget the ahk file in User-directory when updating or backup for my
system at home. The other opinion is - what happens when I import an
ahk file - and the next update of SciTE includes this file an import
it in global.prop? Will there be an error ... Too many things that can
make problems...

But you are right, I think there should be a change in SciTE, too.
It's not very important but much more comfortable.

best regards
Sascha
Reply all
Reply to author
Forward
0 new messages