Basic SciTe Help

57 views
Skip to first unread message

Homme, James

unread,
May 18, 2012, 10:21:36 AM5/18/12
to scite-i...@googlegroups.com

Hi,

I apologize in advance for not always making connections unless they are explained in many words. The version of SciTe I have is the one from AutoItscript.com/. AutoIt runs on Windows, in case what I'm talking about has anything to do with this. But I don't know if what I'm asking has to do with this fact.

 

I was trying to set up abbreviations that would help me write t2t files. As I was looking through the various properties files and trying to trace what would happen when I worked on a t2t file, I saw that the global properties file has a lot of import lines in it for various languages, and none of them end with ".properties." I'm assuming from this that SciTe somehow knows that it should add this extension. Is this right?

 

Next Question. When I save or open a file and give it a t2t extension, is that when SciTe understands that it should use my t2t.properties file?

 

Next question. Should I create an import line in my t2t.properties file for t2t.abbreviations.properties?

 

Next question. Does all of this mean that my t2t.properties file only acts on t2t files, if t2t.properties is in use?

 

Thanks for your patience.

 

Jim

 

Jim Homme,

Usability Services,

Phone: 412-544-1810.

"Our doubts are traitors, And make us lose the good we oft might win, By fearing to attempt." --William Shakespeare

 




This e-mail and any attachments to it are confidential and are intended solely for use of the individual or entity to whom they are addressed. If you have received this e-mail in error, please notify the sender immediately and then delete it. If you are not the intended recipient, you must not keep, use, disclose, copy or distribute this e-mail without the author's prior permission. The views expressed in this e-mail message do not necessarily represent the views of Highmark Inc., its subsidiaries, or affiliates.

Philippe Lhoste

unread,
May 21, 2012, 5:43:14 AM5/21/12
to scite-i...@googlegroups.com
On 18/05/2012 16:21, Homme, James wrote:
> I was trying to set up abbreviations that would help me write t2t files. As I was looking
> through the various properties files and trying to trace what would happen when I worked
> on a t2t file, I saw that the global properties file has a lot of import lines in it for
> various languages, and none of them end with ".properties." I'm assuming from this that
> SciTe somehow knows that it should add this extension. Is this right?

Yes.
Note: software's name is SciTE (TE = Text Editor, Sci = Scintilla, the component
displaying the source code).

> Next Question. When I save or open a file and give it a t2t extension, is that when SciTe
> understands that it should use my t2t.properties file?

Not really.
You include t2t (in SciTEUser.properties), and this file should define the extensions
associated to the t2t lexer (or another, close of the syntax you need).

> Next question. Should I create an import line in my t2t.properties file for
> t2t.abbreviations.properties?

Yes, it is not automatic. Most language property files doesn't have an abbreviation file,
these are generally more user-specific. Some languages property files have an API file,
though.
For example, I have a api.$(file.patterns.lua)=$(SciteDefaultHome)/lua5.api
But again, these should go to SciTEUser.properties, unless you always require the API or
abbreviation file to be shipped with your t2t.properties.

> Next question. Does all of this mean that my t2t.properties file only acts on t2t files,
> if t2t.properties is in use?

An import is always imported, regardless of the current file / buffer. Beware of conflicts
with other properties files!
So, your t2t.properties should define only properties for this kind of file.
Don't use
tabsize=4
but
tab.size.*.t2t=4
or
tab.size.$(file.patterns.t2t)=4
if you defined this property (useful if you have several extensions attached to this lexer).

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

Reply all
Reply to author
Forward
0 new messages