Wiki

Changes between Initial Version and Version 1 of SciTE

Show
Ignore:
Timestamp:
05/02/08 11:45:05 (17 years ago)
Author:
hopscc
Comment:

SciTE editor config for Cobra From Forums Discussion posting by Dafra

Legend:

Unmodified
Added
Removed
Modified
  • SciTE

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