www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - share SciTe api file, keywords and functions highlight file for D

reply yidabu <yidabu gmail.com> writes:
share SciTe api file, keywords and functions highlight file for D

SciTe is my fav text editor.

how to use SciTe api file, keywords and functions highlight file for D:
1 put d.api to SciTe setup dir
2 put d.keywords.properties to SciTe setup dir
3 to use d.api, add bellow to cpp.properties

    file.patterns.d=*.d

    lexer.$(file.patterns.d)=cpp

    word.characters.$(file.patterns.d)=$(word.chars.d)



    api.$(file.patterns.d)=$(SciteDefaultHome)\api\d.api;$(SciteDefaultHome)\api\d.user.calltips.api

    calltip.cpp.word.characters=$(word.chars.d)
	
4 to use d.keywords.properties, add bellow to cpp.properties:

(based on script by yidabu)
    import d.keywords


    keywords.$(file.patterns.d)=$(d.keywords.keywords)


similar
keywords2.$(file.patterns.d)=$(d.keywords.functions)






-- 
yidabu <yidabu gmail.com>
D forum in china:
http://bbs.yidabu.com/forum-10-1.html


-- 
yidabu <yidabu gmail.com>
Apr 19 2007
parent reply yidabu <yidabu gmail.com> writes:
yidabu Wrote:

share SciTe api file, keywords and functions highlight file for D

SciTe is my fav text editor.

how to use SciTe api file, keywords and functions highlight file for D:
1 put d.api to SciTe setup dir
2 put d.keywords.properties to SciTe setup dir
3 to use d.api, add bellow to cpp.properties

    file.patterns.d=*.d

    lexer.$(file.patterns.d)=cpp

    word.characters.$(file.patterns.d)=$(word.chars.d)



    api.$(file.patterns.d)=$(SciteDefaultHome)\api\d.api;$(SciteDefaultHome)\api\d.user.calltips.api

    calltip.cpp.word.characters=$(word.chars.d)
	
4 to use d.keywords.properties, add bellow to cpp.properties:

(based on script by yidabu)
    import d.keywords


    keywords.$(file.patterns.d)=$(d.keywords.keywords)


similar
keywords2.$(file.patterns.d)=$(d.keywords.functions)






-- 

D forum in china:
http://bbs.yidabu.com/forum-10-1.html
Apr 19 2007
parent Dan <murpsoft hotmail.com> writes:
yidabu Wrote:
 SciTe is my fav text editor.
me 2. I have all a really decent d.properties file that comes with D inherently. Unless yours comes with D asm. That would be cool. I also don't use the d.api file because I don't like autocomplete. SciTE now comes complete with a d.properties file when you download the full version. Very sexy. : )
Apr 20 2007