share SciTe api file, keywords and functions highlight file for D
    yidabu 
    yidabu at gmail.com
       
    Thu Apr 19 19:38:08 PDT 2007
    
    
  
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
    # use cpp lexer
    lexer.$(file.patterns.d)=cpp
    word.chars.d=$(chars.alpha)$(chars.numeric)._#$
    word.characters.$(file.patterns.d)=$(word.chars.d)
    # Specify api file 
    # ×Ô¶¯ÌáʾÎļþλÖÃd.apiÊÇdÓïÑԹؼü´Ê£¬º¯ÊýÃû,d.user.calltips.apiÊÇ×Ô¶¨Òå×Ô¶¯Ìáʾ
    # from:  http://bbs.yidabu.com/forum-10-1.html
    api.$(file.patterns.d)=$(SciteDefaultHome)\api\d.api;$(SciteDefaultHome)\api\d.user.calltips.api
    # ×Ô¶¯ÌáʾµÄ×Ö·û·¶Î§£¬¼ÓÉÏ.¾ÍÄÜÖ§³Östd.c.windowsÕâÑùµÄ×Ô¶¯Ìáʾ
    calltip.cpp.word.characters=$(word.chars.d)
	
4 to use d.keywords.properties, add bellow to cpp.properties:
    # Import the seperate d.keywords.properties file containing D language info (based on script by yidabu)
    import d.keywords
    # D language keywords style 5
    keywords.$(file.patterns.d)=$(d.keywords.keywords)
    # keywords2 is for highlighting user defined keywords or function calls or similar
keywords2.$(file.patterns.d)=$(d.keywords.functions)
    # Keyword style
    style.cpp.5=fore:#0000FF,bold
    # Keywords2, functions style of D
   style.cpp.16=fore:#000090,bold,italics
-- 
yidabu <yidabu # gmail.com>
D forum in china:
http://bbs.yidabu.com/forum-10-1.html
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: d.api
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20070419/0190eb74/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cpp.properties
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20070419/0190eb74/attachment-0001.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: d.keywords.properties
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20070419/0190eb74/attachment-0002.ksh>
    
    
More information about the Digitalmars-d
mailing list