I have been browsing and searching for csh/tcsh language support under SciTE,
but there does not seem to exist such a thing. Presently I am using the bash
(aka Shell) language for this. I was wondering if there is a simple guide on
how to support new languages (such as csh/tcsh) under SciTE. The current
documentation does not give much information on how to do so, it talks about
lexers and how to implement it. I would really like a minimal guide that uses
one of the existing lexers but with different keywords, file extensions, etc.
Initially, I would like syntax colorization, then maybe move on to some of the
more advanced language support features such as completion and folding.
Here is what I have gathered so far:
1. create a new properties file, eg. csh.properties
2. This language properties file should contain the following (a short
description would also be nice)
a. file.patterns.<language>=filename patterns
eg. file.patterns.csh=*.csh;*.tcsh
b. lexer.$(file.patterns.<langugage)=lexer
here: a list of some existing lexers may help
eg. lexer.$(file.patterns.csh)=bash
c. keywordclass.csh=<the keywords for this language>
d. keywords.$(file.patterns.csh)=$(keywordclass.csh)
e. comment.block.csh=#
f. word.characters.$(file.patterns.csh)=<not sure what this means>
eg. =$(chars.alpha)$(chars.numeric)[EMAIL PROTECTED]&
g. filter.csh=TCSH/CSH (csh tcsh)|$(file.patterns.csh)
h. style.csh.1..n=<how is this determined? in-combination with lexer?
f. anything else ?
3. add hook in SciTEGlobal.properties
a. under "open.filter" section
b. import new language file (eg. import csh.properties)
c. anything else?
It would be nice if this information is captured on the SciTE website, so that
more languages can be supported under SciTE.
Regards,
Neon
---------------------------------
Don't get soaked. Take a quick peak at the forecast
with theYahoo! Search weather shortcut._______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest