Wiki

Changes between Version 1 and Version 2 of SciTE

Show
Ignore:
Timestamp:
10/03/08 19:16:48 (16 years ago)
Author:
Chuck
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SciTE

    v1 v2  
    1 Adapted the Python Properties file for  
    2 [http://www.scintilla.org/SciTE.html SciTE] to Cobra. 
    3  It does syntax highlighting, folding, and hitting F5 runs the script. 
     1There are two contribs for SciTE. 
    42 
    5 (copied from Forums [http://cobra-language.com/forums/viewtopic.php?f=4&t=33 Posting] by Dafra) 
    6  
    7 {{{ 
    8 # Define SciTE settings for Cobra files. 
    9 # Adapted from Python mode 
    10  
    11 file.patterns.cobra=*.cobra 
    12  
    13 filter.cobra=cobra (cobra)|$(file.patterns.cobra)| 
    14  
    15 lexer.$(file.patterns.cobra)=python 
    16  
    17 keywordclass.cobra=all and any as assert \ 
    18 base be body bool branch break \ 
    19 callable catch char class continue cue \ 
    20 decimal def down dynamic \ 
    21 else end ensure enum event every except expect extend \ 
    22 false finally float for from get global has \ 
    23 if ignore implements implies import in inherits inlined inout instance int interface invariant is \ 
    24 listen must namespace nil not number \ 
    25 objc of off old on or out override \ 
    26 pass passthrough post print pro \ 
    27 raise ref require return same set shared step stop struct success \ 
    28 test this throw to to? trace true try \ 
    29 use using var vari virtual where where while yield \ 
    30  
    31 keywords.$(file.patterns.cobra)=$(keywordclass.cobra) 
    32  
    33 statement.indent.$(file.patterns.cobra)=10 : 
    34 statement.end.$(file.patterns.cobra)= 
    35 statement.lookback.$(file.patterns.cobra)=0 
    36 block.start.$(file.patterns.cobra)= 
    37 block.end.$(file.patterns.cobra)= 
    38  
    39 tab.timmy.whinge.level=1 
    40  
    41 #fold.quotes.cobra=1 
    42  
    43 comment.block.cobra=#~ 
    44  
    45 # cobra styles 
    46 # White space 
    47 style.cobra.0=fore:#808080 
    48 # Comment 
    49 style.cobra.1=fore:#007F00,$(font.comment) 
    50 # Number 
    51 style.cobra.2=fore:#007F7F 
    52 # String 
    53 style.cobra.3=fore:#7F007F,$(font.monospace) 
    54 # Single quoted string 
    55 style.cobra.4=fore:#7F007F,$(font.monospace) 
    56 # Keyword 
    57 style.cobra.5=fore:#00007F,bold 
    58 # Triple quotes 
    59 style.cobra.6=fore:#7F0000 
    60 # Triple double quotes 
    61 style.cobra.7=fore:#7F0000 
    62 # Class name definition 
    63 style.cobra.8=fore:#0000FF,bold 
    64 # Function or method name definition 
    65 style.cobra.9=fore:#007F7F,bold 
    66 # Operators 
    67 style.cobra.10=bold 
    68 # Identifiers 
    69 style.cobra.11= 
    70 # Comment-blocks 
    71 style.cobra.12=fore:#7F7F7F 
    72 # End of line where string is not closed 
    73 style.cobra.13=fore:#000000,$(font.monospace),back:#E0C0E0,eolfilled 
    74 # Highlighted identifiers 
    75 style.cobra.14=fore:#407090 
    76 # Decorators 
    77 style.cobra.15=fore:#805000 
    78 # Matched Operators 
    79 style.cobra.34=fore:#0000FF,bold 
    80 style.cobra.35=fore:#FF0000,bold 
    81 # Braces are only matched in operator style 
    82 braces.cobra.style=10 
    83  
    84 if PLAT_WIN 
    85 cobra=C:\Code\Cobra\bin\cobra.exe 
    86 command.go.*.cobra=$(cobra) "$(FileNameExt)" 
    87 command.compile.*=$(cobra) -c "$(FileNameExt)" 
    88  
    89 if PLAT_GTK 
    90 cobra=cobra 
    91 command.go.*.cobra=$(cobra) "$(FileNameExt)" 
    92 command.compile.*=$(cobra) -c "$(FileNameExt)" 
    93 }}} 
     3 * [http://cobra-language.com/forums/viewtopic.php?f=4&t=172 Forums Posting] in 2008-10 by gogobyte 
     4 * [http://cobra-language.com/forums/viewtopic.php?f=4&t=33 Forums Posting] in 2008-02 by Dafra